Bug #68425 | Cannot create the database again through mysql_install_db script. | ||
---|---|---|---|
Submitted: | 19 Feb 2013 9:23 | Modified: | 19 Feb 2013 12:13 |
Reporter: | Jigar Dhulla | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S2 (Serious) |
Version: | 5.5.29 | OS: | Linux (CentOS release 6.3 (Final)) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_install_db, mysql.plugin |
[19 Feb 2013 9:23]
Jigar Dhulla
[19 Feb 2013 10:37]
MySQL Verification Team
Hello Jigar, Thank you for the report. I can not repeat described behavior. I tried to install in non-default location, and confirmed that system schema created and started mysqld without any issues.. [root@cluster-repo mysql-5_5_29]# scripts/mysql_install_db --basedir=/data/ushastry/server/mysql-5_5_29 --datadir=/tmp/5529 --user=mysql Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /data/ushastry/server/mysql-5_5_29/bin/mysqladmin -u root password 'new-password' /data/ushastry/server/mysql-5_5_29/bin/mysqladmin -u root -h cluster-repo password 'new-password' Alternatively you can run: /data/ushastry/server/mysql-5_5_29/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /data/ushastry/server/mysql-5_5_29 ; /data/ushastry/server/mysql-5_5_29/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /data/ushastry/server/mysql-5_5_29/mysql-test ; perl mysql-test-run.pl Please report any problems with the /data/ushastry/server/mysql-5_5_29/scripts/mysqlbug script! [root@cluster-repo mysql-5_5_29]# ls -l --datadir=/tmp/5529 ls: unrecognized option '--datadir=/tmp/5529' Try `ls --help' for more information. [root@cluster-repo mysql-5_5_29]# ls -l /tmp/5529 total 12 drwx------ 2 mysql root 4096 Feb 20 14:11 mysql drwx------ 2 mysql mysql 4096 Feb 20 14:11 performance_schema drwx------ 2 mysql root 4096 Feb 20 14:11 test [root@cluster-repo mysql-5_5_29]# [root@cluster-repo mysql-5_5_29]# bin/mysqld_safe --no-defaults --basedir=/data/ushastry/server/mysql-5_5_29 --datadir=/tmp/5529 --port=3306 --socket=sock --server-id=1 --tmpdir=/tmp/5529/ --user=mysql & [1] 13872 [root@cluster-repo mysql-5_5_29]# 130220 14:12:13 mysqld_safe Logging to '/tmp/5529/cluster-repo.err'. 130220 14:12:13 mysqld_safe Starting mysqld daemon with databases from /tmp/5529 [root@cluster-repo mysql-5_5_29]# [root@cluster-repo mysql-5_5_29]# ps aux|grep mysqld root 13872 0.3 0.0 106232 1404 pts/0 S 14:12 0:00 /bin/sh bin/mysqld_safe --no-defaults --basedir=/data/ushastry/server/mysql-5_5_29 --datadir=/tmp/5529 --port=3306 --socket=sock --server-id=1 --tmpdir=/tmp/5529/ --user=mysql mysql 14036 1.6 0.6 448200 39880 pts/0 Sl 14:12 0:00 /data/ushastry/server/mysql-5_5_29/bin/mysqld --no-defaults --basedir=/data/ushastry/server/mysql-5_5_29 --datadir=/tmp/5529 --plugin-dir=/data/ushastry/server/mysql-5_5_29/lib/plugin --user=mysql --server-id=1 --tmpdir=/tmp/5529/ --log-error=/tmp/5529/cluster-repo.err --pid-file=/tmp/5529/cluster-repo.pid --socket=sock --port=3306 root 14054 0.0 0.0 103244 836 pts/0 S+ 14:12 0:00 grep mysqld [root@cluster-repo mysql-5_5_29]# Btw, I noticed that you are getting error 13 and perror suggest that it is due to permissions.. [root@cluster-repo mysql-5_5_29]# bin/perror 13 OS error code 13: Permission denied
[19 Feb 2013 12:09]
Jigar Dhulla
Hi, Sorry. Looks like there is some error in my OS itself even yum's mysql isn't working. Thanks.
[19 Feb 2013 12:13]
MySQL Verification Team
Thanks for confirming. I am closing this bug now - please reopen, if needed