首页 / MYSQL / gentoo安装mysql
gentoo安装mysql
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了gentoo安装mysql,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1873字,纯文字阅读大概需要3分钟。
内容图文
![gentoo安装mysql](/upload/InfoBanner/zyjiaocheng/565/896cae19210d4b3bb30cadebe086f70d.jpg)
1 sudoemergemysql 2 sudo ebuild /var/db/pkg/dev-db/mysql-5.1.56/mysql-5.1.56.ebuild config Password: * Please provide a password for the mysql 'root' user now, in the * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file. * Avoid
1 sudo emerge mysql
2sudo ebuild /var/db/pkg/dev-db/mysql-5.1.56/mysql-5.1.56.ebuild config
Password:
* Please provide a password for the mysql 'root' user now, in the
* MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
* Avoid ["'/_%] characters in the password
>
* Retype the password
>
* Creating the mysql database and setting proper
* permissions on it ...
* Starting mysqld ... [ ok ]
* Setting root password ... [ ok ]
* Loading "zoneinfo", this step may require a few seconds ... ... [ ok ]
* Stopping the server ...
* Done
3:sudo /etc/init.d/mysql start
* Caching service dependencies ... [ ok ]
* Starting ...
* Starting (/etc/mysql/my.cnf)
4:mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 1
Server version: 5.1.56-log Gentoo Linux mysql-5.1.56
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
5让系统自动启动
sudo rc-update add mysql default
6
Messages for package dev-db/mysql-5.1.56:
* MySQL MY_DATADIR is /var/lib/mysql
* You might want to run:
* "emerge --config =dev-db/mysql-5.1.56"
* if this is a new install.
* If you are upgrading major versions, you should run the
* mysql_upgrade tool.
内容总结
以上是互联网集市为您收集整理的gentoo安装mysql全部内容,希望文章能够帮你解决gentoo安装mysql所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。