2007-04-16
一个系统下的多个mysql安装
关键字: mysql linux- 安装的版本是mysql5.0.37,服务器原本的版本是mysql3.23
- tar zxvf mysql-5.0.37.tar.gz
- ./configure --prefix=/real/ugc/mysqlmaster --with-charset=utf8 --with-unix-socket-path=/real/ugc/mysqlmaster.sock --with-tcp-port=7001 --with-extra-charsets=gbk,gb2312,utf8,big5,latin1,latin2,latin5,latin7
- --prefix:安装的目录
- --with-unix-socket-path:安转的socket的路径
- --with-tcp-port:安装的mysql的端口
- --with-extra-charsets:默认支持的字符集
- scripts/mysql_install_db --user=mysql(安装mysql默认库)
- 启动mysql:bin/mysqld_safe --socket=/tmp/mysqlmaster.sock --port=7001 &
- netstat -anp|grep LISTEN 查看监听的端口
- 修改root密码:/real/ugc/mysqlmaster/bin/mysqladmin --socket=/tmp/mysqlmaster.sock --port=7001 -u root password 'root'
- 启动数据库:bin/mysql -uroot -proot --default-character-set=utf8 --socket=/temp/mysqlmaster.sock
到这里,安装基本结束了
发表评论
- 浏览: 101016 次
- 来自: 北京

- 详细资料
搜索本博客
我的相册
IMG_7195
共 46 张
共 46 张
最近加入圈子
最新评论
-
北京太乱了,求你,别来了 ...
深有感触。。。
-- by zisidemao -
【收藏】通过js调用WebSer ...
Where's http://localhost/accountws/servi ...
-- by dayrl -
Xfire在Spring下实现安全 ...
开源否开源社区:http://www.kaiyuanfou.com有更详细的说明
-- by zhongludeng -
Xfire在Spring下实现安全 ...
开源否开源社区:http://www.kaiyuanfouc.com有更详细的说 ...
-- by zhongludeng -
关于EhCache的使用
:o :lol: :cry: :wink:& ...
-- by dsl_0375






评论排行榜