Welcome 微信登录

首页 / 数据库 / MySQL / Centos5下MySQL的安装步骤

CentOS5下MySQL的安装步骤

创建mysql用户组和用户
[root@centos ]# groupadd mysql
[root@centos ]# useradd -g mysql mysql
[root@centos ]# cd homexule
[root@centos ]# chmod 755 mysql-5.0.22.tar.gz

编译并安装MySQL
[root@centos ]# tar zxvf mysql-5.0.22.tar.gz
[root@centos ]#cd mysql-5.0.22
[root@centos mysql-5.0.22]  .configure --prefix=usrlocalmysql
[root@centos mysql-5.0.22]  make
[root@centos mysql-5.0.22]  make install

配置并启动MySQL
[root@centos mysql-5.0.22]# cp support-filesmy-medium.cnf etcmy.cnf
[root@centos mysql-5.0.22]# cd usrlocalmysql
[root@centos mysql]# binmysql_install_db --user=mysql
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-filesmysql.server
to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands
usrlocalmysqlbinmysqladmin -u root password "new-password"
usrlocalmysqlbinmysqladmin -u root -h centos.job100.com password "new-password"
See the manual for more instructions.You can start the MySQL daemon with
cd usrlocalmysql ; usrlocalmysqlbinmysqld_safe &You can test the MySQL daemon with the benchmarks in the "sql-bench" directory
cd sql-bench ; perl run-all-testsPlease report any problems with the usrlocalmysqlbinmysqlbug script!The latest information about MySQL is available on the web at
httpwww.mysql.com
Support MySQL by buying supportlicenses at httpshop.mysql.com[root@centos mysql]# binmysqld_safe --user=mysql &
[1] 20100
[root@centos mysql]# Starting mysqld daemon with databases from usrlocalmysqlvar
  • 1
  • 2
  • 下一页
Ubuntu 7.10下配置mysql我的MySQL数据库学习小结相关资讯      mysql  centos5 
  • 数据库服务器 MySQL  (08/15/2013 06:50:23)
  • CentOS5下进行Redmine环境搭建,邮  (04/29/2013 16:36:35)
  • MySQL 5.6 GA 及逃亡潮  (02/08/2013 14:36:35)
  • MySQL Administrator连接VMWare下  (05/24/2013 09:20:58)
  • CentOS5下Apache+PHP环境搭建  (04/29/2013 16:20:30)
  • MySQL 5.1.68 发布  (02/05/2013 08:37:47)
本文评论 查看全部评论 (1)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人