Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    June 2018
    Posts
    1

    Could not connect to mariadb server (root user)

    Hello.

    I run TeamSpeak Server with this command:
    HTML Code:
    ./ts3server_minimal_runscript.sh inifile=ts3server.ini
    My settings ts3server.ini:
    HTML Code:
    machine_id=
    default_voice_port=9987
    voice_ip=145.xxx.xxx.180
    liscensepath=
    filetransfer_port=30033
    filetransfer_ip=145.xxx.xxx.180
    query_port=10011
    query_ip=145.xxx.xxx.180
    query_ip_whitelist=query_ip_whitelist.txt
    query_ip_blacklist=query_ip_blacklist.txt
    dbplugin=ts3db_mariadb
    dbpluginparameter=ts3db_mariadb.ini
    dbsqlpath=sql/
    dbsqlcreatepath=create_mariadb/
    dblogkeepdays=365
    logpath=logs
    logquerycommands=0
    dbclientkeepdays=365
    My settings ts3db_mariadb.ini:
    HTML Code:
    host=localhost
    port=3306
    username=root
    password=redacted
    database=TeamSpeak
    socket=/var/lib/mysql/mysql.sock
    And I get this error:
    HTML Code:
    2018-06-02 19:44:30.978841|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.2.0 (2018-05-08 06:11:20)
    2018-06-02 19:44:30.978915|INFO    |ServerLibPriv |   |SystemInformation: Linux 2.6.32-042stab127.2 #1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64 Binary: 64bit
    2018-06-02 19:44:30.978932|WARNING |ServerLibPriv |   |The system locale is set to "C" this can cause unexpected behavior. We advice you to repair your locale!
    2018-06-02 19:44:30.978944|INFO    |ServerLibPriv |   |Using hardware aes
    2018-06-02 19:44:30.979478|INFO    |DatabaseQuery |   |dbPlugin name:    MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH
    2018-06-02 19:44:30.979498|INFO    |DatabaseQuery |   |dbPlugin version: 2
    2018-06-02 19:44:30.980112|ERROR   |DatabaseQuery |   |Could not connect to mariadb server: Access denied for user 'root'@'localhost' (using password: NO)
    2018-06-02 19:44:30.980140|CRITICAL|ServerLibPriv |   |Server() unable to initialize database
    Last edited by Chris; June 3rd, 2018 at 04:46 PM. Reason: removed private information

  2. #2
    Join Date
    September 2012
    Posts
    6,076
    your ts3db_mariadb.ini is malformed. It's supposed to have
    Code:
    [config]
    as the line above the information. Simply add that on its own line above all the other stuff you have in there and it should be good.

    Note that you're supposed to start the server using the ts3server_startscript.sh so in your case it would be like this:
    Code:
    ./ts3server_startscript.sh start inifile=ts3server.ini
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #3
    Join Date
    June 2008
    Posts
    18,109
    Not a TeamSpeak problem. Your database does not allow this login.
    Code:
    Access denied for user 'root'@'localhost' (using password: NO)
    You are using root as account. Never do this anywhere.

    Use a new or other existing account that is allowed to login with username and a password.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cant Start TS3 Server as non-root user.
    By ReiserFS in forum Linux / FreeBSD
    Replies: 2
    Last Post: March 16th, 2016, 02:13 PM
  2. [Resolved] Can't start server as not-root user
    By HerrAusragend in forum Linux / FreeBSD
    Replies: 2
    Last Post: January 29th, 2015, 05:19 AM
  3. Server only runs using root user.
    By Werner291 in forum Server Support
    Replies: 2
    Last Post: December 4th, 2011, 02:21 PM
  4. Unable to start server as non-root user on VPS
    By jesepi in forum Linux / FreeBSD
    Replies: 5
    Last Post: December 21st, 2009, 01:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •