久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

MySQL 5.5初始化數據庫報錯FATAL ERROR: Could not find my

133次閱讀
沒有評論

共計 3216 個字符,預計需要花費 9 分鐘才能閱讀完成。

行業資訊    
數據庫    
MySQL 數據庫    
MySQL 5.5 初始化數據庫報錯 FATAL ERROR: Could not find my_print_defaults 怎么辦

這篇文章給大家分享的是有關 MySQL 5.5 初始化數據庫報錯 FATAL ERROR: Could not find my_print_defaults 怎么辦的內容。丸趣 TV 小編覺得挺實用的,因此分享給大家做個參考,一起跟隨丸趣 TV 小編過來看看吧。

執行初始化 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
  https://bugs.launchpad.net/percona-server/+filebug

Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team s productivity.

感謝各位的閱讀!關于“MySQL 5.5 初始化數據庫報錯 FATAL ERROR: Could not find my_print_defaults 怎么辦”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-07-26發表,共計3216字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 武清区| 丰顺县| 汶上县| 彭阳县| 隆德县| 沂南县| 西峡县| 汉沽区| 东乌珠穆沁旗| 额敏县| 甘孜| 清苑县| 永丰县| 赣榆县| 平原县| 阿尔山市| 兴山县| 腾冲县| 社会| 襄城县| 体育| 林芝县| 西乌珠穆沁旗| 全南县| 九寨沟县| 紫金县| 泌阳县| 新蔡县| 广安市| 汝阳县| 滦南县| 周口市| 金湖县| 文昌市| 砀山县| 繁昌县| 虎林市| 昌邑市| 新津县| 焉耆| 黄冈市|