linux下配置mysql和mysql初始化

來源:互聯網
上載者:User

標籤: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初始化

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.