MySQL 5.5初始化資料庫報錯FATAL ERROR: Could not find my_print_defaults
執行初始化MySQL資料庫的資料檔案路徑,並且建立系統表,發生報錯
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/
FATAL ERROR: Could not find my_print_defaults
The following directories were searched:
/mysql_software_55//bin
/mysql_software_55//extra
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_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101
解決方法:
將所有軟體檔案移動到上一級目錄,刪除Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101目錄
cd /mysql_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# mv * ..
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# cd ..
[root@MySQL01 mysql_software_55]# rmdir Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101/
[root@MySQL01 mysql_software_55]# ./scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/
WARNING: The host 'MySQL01' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
171214 9:56:46 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:46 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9175 ...
OK
Filling help tables...
171214 9:56:47 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:47 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9182 ...
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_55//bin/mysqladmin -u root password 'new-password'
/mysql_software_55//bin/mysqladmin -u root -h MySQL01 password 'new-password'
Alternatively you can run:
/mysql_software_55//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_55/ ; /mysql_software_55//bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /mysql_software_55//mysql-test ; perl mysql-test-run.pl
Please report any problems at
Percona recommends that all production deployments be protected with a support
contract () to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/
FATAL ERROR: Could not find my_print_defaults
The following directories were searched:
/mysql_software_55//bin
/mysql_software_55//extra
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_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101
解決方法:
將所有軟體檔案移動到上一級目錄,刪除Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101目錄
cd /mysql_software_55/Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# mv * ..
[root@MySQL01 Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101]# cd ..
[root@MySQL01 mysql_software_55]# rmdir Percona-Server-5.5.58-rel38.10-Linux.x86_64.ssl101/
[root@MySQL01 mysql_software_55]# ./scripts/mysql_install_db --user=mysql --basedir=/mysql_software_55/ --datadir=/mysql_55_3306/data/
WARNING: The host 'MySQL01' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
171214 9:56:46 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:46 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9175 ...
OK
Filling help tables...
171214 9:56:47 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
171214 9:56:47 [Note] /mysql_software_55//bin/mysqld (mysqld 5.5.58-38.10) starting as process 9182 ...
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_55//bin/mysqladmin -u root password 'new-password'
/mysql_software_55//bin/mysqladmin -u root -h MySQL01 password 'new-password'
Alternatively you can run:
/mysql_software_55//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_55/ ; /mysql_software_55//bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /mysql_software_55//mysql-test ; perl mysql-test-run.pl
Please report any problems at
Percona recommends that all production deployments be protected with a support
contract () to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2148693/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 5.6初始化資料庫時報錯FATAL ERROR: Could not find ./bin/my_print_defaultsMySql資料庫Error
- FATAL ERROR: Could not find ./bin/my_print_defaults 解決方法Error
- Fatal error: Uncaught PDOException: could not find driverErrorException
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- MySQL 5.5 關閉資料庫報錯"Can't connect to local MySQL server through socket"MySql資料庫Server
- 引入第三方庫報錯Could not find method apt() for argumentsAPT
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- Mysql資料庫報ERROR 1045 (28000)報錯及MySQL忘記密碼找回MySql資料庫Error密碼
- 【MySQL】mysql啟動報錯./mysqld_safe: my_print_defaults: not foundMySql
- MySQL 5.5原始碼安裝時啟動資料庫報錯"Table 'mysql.user' doesn't exist??"MySql原始碼資料庫
- OGG-00446 ERROR: Could not find archived logErrorHive
- MySQL 5.5 報錯"ERROR 1075 (42000): Incorrect table definition"MySqlError
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- MySQL 登入資料庫報錯'ERROR 1045 (28000): Access denied for user'..'@'localhost''MySql資料庫Errorlocalhost
- Fatal NI connect error 12170.報錯處理Error
- Greenplum初始化資料庫gpinitsystem報錯以及解決資料庫
- 【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 5.5 設定資料庫引數MySql資料庫
- [MySQL生產環境資料恢復]innobackupex: fatal error: OR no 'datadir'MySql資料恢復Error
- MYSQL SOURCE報錯 ERROR: ASCIIMySqlErrorASCII
- MySQL Replication Fatal Error 1236MySqlError
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- PHP報錯:?configure: error: Cannot find libmysqlclientPHPErrorIBMMySqlclient
- master bug InnoDB Error unlock row could not find a 4 mode lockASTError
- Mysql 5.5 資料庫啟動關閉命令MySql資料庫
- 錯誤 - Could not find the index entry for RIDIndex
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- mysql建立資料庫報錯了怎麼辦MySql資料庫
- mysql報錯ERROR 1093MySqlError
- windows終端輸入pip install requests報錯:Fatal error in launcherWindowsError
- Error ./bin/my_print_defaults: not foundError
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- 登入 Oracle 資料庫報錯,ORA-00257: archiver errorOracle資料庫HiveError
- fatal: [192.168.65.128]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be senFalseError
- Tomcat 5.5 配置 MySQL 資料庫連線池TomcatMySql資料庫