免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: piaobo2161978
打印 上一主题 下一主题

安装mysql出错 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-08-08 15:45 |只看该作者
七楼,比较赞同你的观点,redhat9版本太老,好像对mysql5没有足够的函数库支持。
八楼,本来觉得rpm安装比较省事,不用配置一些东西,也不用make,make install...
九,十楼,装linux,是想在linux上面练习一下Java编程,从网上随便下一redhat9,没想到对软件安装带来不少麻烦
,先这样用这吧,以后实在不行再换,呵呵 ...
感谢各位的建议,小弟受益匪浅。
我放弃了rpm,下载了mysql-5.1.36.tar.gz,下面把大致的安装过程描述一下,没有配置其他信息,网上也有不少介

绍。

1.把mysql-5.1.36.tar.gz放到/usr/local下(有人说必须放在这个目录下,没试过其他地方行不行)

2.(安装)
#cd /usr/local
  #tar -zxvf mysql-5.1.36.tar.gz
  #cd mysql-5.1.36
  #./configure --prefix=/zhc/mysql(指定安装目录)
  #make
  #make install
  #scripts/mysql_install_db
3.(server端)
  #cp support-files/my-medium.cnf /etc/my.cnf (copy配置文件)
  #cp cp support-files/mysql.server /etc/init.d/mysqld (copy启动的mysqld文件)
  #chmod 700 /etc/init.d/mysqld
  # service mysqld start
  # netstat -atln (看看有没有3306的端口打开)
4.(clinet端)
  # ln -s /zhc/mysql/bin/mysql  /sbin/mysql (创建快捷方式,主意:要写绝对路径)
  # ln -s /zhc/mysql/bin/mysqladmin  /sbin/mysqladmin
6.
  # mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.36-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP