找回密码
 入门

QQ登录

只需一步,快速开始

查看: 1104|回复: 0

MBL装mysql

[复制链接]
发表于 2014-3-11 23:55:18 | 显示全部楼层 |阅读模式
1.添加debian更新源
登入winscp  帐号 root 密码 welc0me
文件目录地址/etc/apt/sources.list
原来的更新源:
deb http://ftp.us.debian.org/debian/ squeeze main
deb http://ftp.us.debian.org/debian/ wheezy main
#deb-src http://ftp.us.debian.org/debian/ wheezy main
#deb http://ftp.us.debian.org/debian/ sid main
把前面两个deb加#注释掉或是全部删掉

添加
deb http://archive.debian.org/debian/ lenny main
2.登入PuTTY  帐号 root 密码 welc0me

查看你的MBL的硬件版本
我的硬件版本是
MyBookLive:~# cat /etc/version
02.42.03-027

保护udev
  • aptitude hold udev


升级并安装mysql
  • apt-get update


报错
W: GPG error: http://ftp.us.debian.org squeeze Release: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY AED4B06F473041FA
W: You may want to run apt-get update to correct these problems
输入
  • gpg --keyserver subkeys.pgp.net --recv AED4B06F473041FA
  • gpg --export --armor AED4B06F473041FA | sudo apt-key add -


AED4B06F473041FA 包含在你的错误信息里

然后再更新
  • apt-get update
  • apt-get install mysql-server mysql-client php5-mysql


中间会叫你输入几个Y,然后安装mysql的时候会让你输入密码,确认输入密码,点Ok,会继续安装
安装php5-common这时又报错
Errors were encountered while processing:
/var/cache/apt/archives/php5-common_5.2.6.dfsg.1-1+lenny16_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
输入
  • dpkg -i --force-overwrite /var/cache/apt/archives/php5-common_5.2.6.dfsg.1-1+lenny16_powerpc.deb


然后输入
  • apt-get update
  • apt-get -f install


直到安装完成
创建mysql server启动项及配置
输入
  • ln -s /etc/init.d/mysql /etc/rc2.d/
  • mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  • cd /usr
  • usr/bin/mysqld_safe &


重启apache和mysql
输入
  • /etc/init.d/apache2 restart
  • /etc/init.d/mysql restart


您需要登录后才可以回帖 登录 | 入门

本版积分规则

Archiver|手机版|浙公网安备 33059102000121号|【 老鸟 】 ( 浙ICP备12032149号 )

GMT+8, 2025-6-20 03:28 , Processed in 0.097685 second(s), 14 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表