7

sysbench – Linux Test Bench


Posted by Artem Russakovskii on October 12th, 2007 in Databases, Linux
Share

Updated: July 23rd, 2008

7 Responses to “sysbench – Linux Test Bench”

    7 Comments:
  1. demien says:

    can anyone tell me why i cant connect to mysql database through sysbench and i m getting the out put is like follow…

    [root@localhost Download]# sysbench –test=oltp –mysql-password=moshi –mysql-db=test–mysql-host='192.168.2.103' –mysql-table-engine=innodb preparesysbench v0.4.8: multi-threaded system evaluation benchmark

    No DB drivers specified, using mysql
    FATAL: unable to connect to MySQL server, aborting…
    FATAL: error 1045: Access denied for user 'sbtest'@'localhost' (using password: YES)
    FATAL: failed to connect to database server!
    [root@localhost Download]#

  2. demien, you're using the wrong credentials to log in. Check that your user has proper permissions and you're typing in the right password. Note that if you're logging into localhost, you need to make sure your mysql user has localhost as allowed hostname. Simply user@% is not enough.

  3. kunal says:

    demien,

    You didn't mention –mysql-user=user thats why its giving you an error

  4. Ken says:

    Can someone tell me what the heck everyone is talking about

  5. Vishal Gupta says:

    One thing to mention that sysbench does not create the database for you, you have to do that manually. So first run this:
    $create database test;

    and then the commands above. That should work.

    • Jamsheer Ak says:

      Mr Vishal Gupta can u tell me how to create database for sysbech running in shell
      because i use the mysql cmd to create database as follows
      sudo mysqladmin -h localhost -u root -pjamshy27 create Person;
      after that
      mysql -h localhost -u root -pjamshy
      it came like
      mysql> use person
      batabase changed
      mysql> create table employee(…………) like
      i am asking can we do same thing in to perform sysbench? can give more clarification for me?

  6. Jamsheer Ak says:

    can anyone help me to fix the following error
    root@jamsheer-laptop:/home/jamsheer# sudo sysbench –test=oltp –db-driver=mysql –mysql-table-engine=innodb –num-threads=32 –mysql-user=root –max-time=10 –max-requests=0 –oltp-read-only=on –oltp-table-size=100 run
    sysbench v0.4.8: multi-threaded system evaluation benchmark

    FATAL: unable to connect to MySQL server, aborting…
    FATAL: error 1045: Access denied for user 'root'@'localhost' (using password: NO)
    ALERT: Error: failed to determine table 'sbtest' type!
    ALERT: MySQL error: Access denied for user 'root'@'localhost' (using password: NO)
    FATAL: failed to get database capabilities!

Leave a Reply

Connect with Facebook