MySQL 5.6初始化資料庫時報錯FATAL ERROR: Could not find ./bin/my_print_defaults
MySQL 5.6初始化資料庫時報錯
[root@localhost scripts]# ./mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
FATAL ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
解決方法:
使用全路徑進行初始化MySQL
[root@localhost mysql_software_56]# /mysql_software_56/scripts/mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
Installing MySQL system tables...2017-07-29 02:01:18 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:01:18 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50198 ...
OK
Filling help tables...2017-07-29 02:03:47 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:03:47 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50239 ...
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:
/mysql_software_56/bin/mysqladmin -u root password 'new-password'
/mysql_software_56/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
/mysql_software_56/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 . ; /mysql_software_56/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems at
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at
New default config file was created as ./my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server
[root@localhost scripts]# ./mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
FATAL ERROR: Could not find ./bin/my_print_defaults
If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.
If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.
使用全路徑進行初始化MySQL
[root@localhost mysql_software_56]# /mysql_software_56/scripts/mysql_install_db --defaults-file=/etc/my_5.6_3306.cnf --datadir=/my3306/data/ --user=mysql
Installing MySQL system tables...2017-07-29 02:01:18 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:01:18 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50198 ...
OK
Filling help tables...2017-07-29 02:03:47 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2017-07-29 02:03:47 0 [Note] ./bin/mysqld (mysqld 5.6.37-log) starting as process 50239 ...
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:
/mysql_software_56/bin/mysqladmin -u root password 'new-password'
/mysql_software_56/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
/mysql_software_56/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 . ; /mysql_software_56/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems at
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at
New default config file was created as ./my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2142772/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 5.5初始化資料庫報錯FATAL ERROR: Could not find my_print_defaultsMySql資料庫Error
- FATAL ERROR: Could not find ./bin/my_print_defaults 解決方法Error
- Fatal error: Uncaught PDOException: could not find driverErrorException
- Error ./bin/my_print_defaults: not foundError
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- MySQL 5.6修復從庫複製時報錯'ERROR 1872 (HY000): Slave failed to initialize'MySqlErrorAI
- Could not find or access '/etc/ansible/bin/cfssljson /etc/ansible/bin/cfsslJSON
- MySQL 授權時報錯 ERROR 1819MySqlError
- Percona MySQL 5.6 主主複製環境報錯"Got fatal error 1236 from master.."MySqlGoErrorAST
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- OGG-00446 ERROR: Could not find archived logErrorHive
- laravel 資料庫遷移時報錯Laravel資料庫
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- mysql5.6預設有幾個資料庫?mysql5.6初始有幾個資料庫?MySql資料庫
- 【MySql】MySQL Replication Fatal Error 1236MySqlError
- ogg GGS ERROR 500 Could not find archived logErrorHive
- SQL error 2812: Could not find stored procedure.docSQLError
- 康孚備份資料庫時報錯資料庫
- MySQL error log和bin logMySqlError
- [MySQL生產環境資料恢復]innobackupex: fatal error: OR no 'datadir'MySql資料恢復Error
- MySQL Replication Fatal Error 1236MySqlError
- master bug InnoDB Error unlock row could not find a 4 mode lockASTError
- MySQL建立觸發器時報錯Error Code: 1064MySql觸發器Error
- 引入第三方庫報錯Could not find method apt() for argumentsAPT
- 錯誤 - Could not find the index entry for RIDIndex
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- Error: Could not load module '/usr/local/nagios/bin/ndo2ErroriOS
- fatal: [192.168.65.128]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be senFalseError
- ORA-17629:rman建立 standby資料庫時報錯資料庫
- SQLYOG連線資料庫時報錯1251SQL資料庫
- Fatal NI connect error 12170 錯誤Error
- Error:Could not find com.android.tools.build:gradle:2.2.2.ErrorAndroidUIGradle
- composer安裝完成輸入命令報錯:Fatal error: Class ‘Phar‘ not found in C:\\ProgramData\\ComposerSetup\\bin\\compoError
- Starting MySQL * Couldn't find MySQL server (/usr/bin/mysqld_safe)MySqlServer
- MySQL 建立函式時報錯'ERROR 1336 (0A000): Dynamic SQL'MySql函式Error
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError
- MySQL create function時報錯MySqlFunction
- MySQL 5.6因為OOM導致資料庫重啟MySqlOOM資料庫