標籤:mysql初始化
下面是正常初始化後提示的資訊,這篇文章很重要
[[email protected] scripts]# ./mysql_install_db --basedir=/application/mysql --datadir=/application/mysql/data/ --user=mysql
##指定mysql安裝路徑,指定資料檔案夾data路徑,指定使用者初始化
WARNING: The host ‘dataserver‘ could not be looked up with resolveip.
警告:不能用resoleip尋找主機的資料表。
This probably means that your libc libraries are not 100 % compatible
這可能意味著您的libc庫並不是100%相容的使用這個二進位MySQL版本。
with this binary MySQL version. The MySQL daemon, mysqld, should work
MySQL守護進程mysqld應該工作
normally with the exception that host name resolving will not work.
通常情況下,主機名稱解析不會起作用。
This means that you should use IP addresses instead of hostnames
這意味著你應該使用IP地址而不是主機名稱
when specifying MySQL privileges !
在指定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
要在啟動時啟動mysqld,必須複製
支援檔案/ mysql。伺服器到您的系統的正確位置
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
請記住為MySQL根使用者設定密碼!
為此,啟動伺服器,然後發出以下命令:
/application/mysql/bin/mysqladmin -u root password ‘new-password‘
/application/mysql/bin/mysqladmin -u root -h dataserver password ‘new-password‘
Alternatively you can run:
/application/mysql/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 /application/mysql ; /application/mysql/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /application/mysql/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /application/mysql/scripts/mysqlbug script!
本文出自 “董利強” 部落格,請務必保留此出處http://6207422.blog.51cto.com/6197422/1967955
linux下配置mysql和mysql初始化