你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 12.04 下安装MySQL 5.5.25

[日期:2012-06-10] 来源:Linux社区  作者:eastson [字体:大 中 小]

8. 再次执行mysql_install_db,这次执行成功。

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

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h amonest-Satellite-C600 password 'new-password'

Alternatively you can run:
./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 . ; ./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 with the ./bin/mysqlbug script!

9. 配置mysql服务,然后启动。

cd /etc/init.d
sudo ln -s /usr/local/development/mysql-5.5.25/support-files/mysql.server
sudo /etc/init.d/mysql.server start

10. 启动mysql服务时报错了,原来是没有/usr/local/mysql目录。

11. 创建符号链接/usr/local/mysql到/usr/local/development/mysql-5.5.25。

cd /usr/local
sudo ln -s /usr/local/development/mysql-5.5.25 mysql
sudo chown -R mysql:mysql mysql
linux
相关资讯       MySQL安装教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款