疯狂建议写一个ubuntu下mysql安装配置过程!!!
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
疯狂建议写一个ubuntu下mysql安装配置过程!!!
这几天一直在弄,已经快崩溃了!!!
是按ubuntu的安装指南做的,可是就是连不上!
希望版主能百忙之中做一下,谢谢!!
我准备编译安装和配置!!!如果成功,会把详细过程发上来!!
是按ubuntu的安装指南做的,可是就是连不上!
希望版主能百忙之中做一下,谢谢!!
我准备编译安装和配置!!!如果成功,会把详细过程发上来!!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 3025
- 注册时间: 2005-05-07 23:57
- 联系:
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
谢谢两位兄弟!
我重新安装了还是这个问题,没办法,估计配置文件有问题!
mysql倒是能够启动,但
root@zzl:/home/zhouzhanlun # mysql -u root
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
root@zzl:/home/zhouzhanlun # mysql -u zhouzhanlun
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database y2k;
ERROR 1044: Access denied for user: '@localhost' to database 'y2k'
mysql>
mysql倒是能够启动,但
root@zzl:/home/zhouzhanlun # mysql -u root
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
root@zzl:/home/zhouzhanlun # mysql -u zhouzhanlun
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database y2k;
ERROR 1044: Access denied for user: '@localhost' to database 'y2k'
mysql>
上次由 zhouzhanlun 在 2005-07-29 14:41,总共编辑 1 次。
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
接上面!!
root@zzl:/home/zhouzhanlun # mysqladmin -u zhouzhanlun password 'zhouzhanlun'
mysqladmin: unable to change password; error: 'Access denied for user: '@localhost' to database 'mysql''
就是这样,安装后什么也干不成!!
mysqladmin: unable to change password; error: 'Access denied for user: '@localhost' to database 'mysql''
就是这样,安装后什么也干不成!!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
-
- 帖子: 3025
- 注册时间: 2005-05-07 23:57
- 联系:
Re: 谢谢两位兄弟!
奇怪,你刚刚装完了lamp,默认访问zhouzhanlun 写了:我重新安装了还是这个问题,没办法,估计配置文件有问题!
mysql倒是能够启动,但
root@zzl:/home/zhouzhanlun # mysql -u root
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
root@zzl:/home/zhouzhanlun # mysql -u zhouzhanlun
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> create database y2k;
ERROR 1044: Access denied for user: '@localhost' to database 'y2k'
mysql>
mysql -u root -p
回车
就进入了。
后来我按这里(只看了一楼)
viewtopic.php?t=1320
mysql> update user set user="yongyi" where user="root";
以后就用$ mysql -u yongyi -p
登陆了。
刚刚试试建立数据库,没问题啊。
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
这样了!
root@zzl:/zzl/dripkg # mysql -u zhouzhanlun -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14 to server version: 4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> update user set user="zhouzhanlun" where user="root";
ERROR 1046: No Database Selected
mysql>
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14 to server version: 4.0.23_Debian-3ubuntu2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> update user set user="zhouzhanlun" where user="root";
ERROR 1046: No Database Selected
mysql>
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
-
- 帖子: 3025
- 注册时间: 2005-05-07 23:57
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
mysql > show databases;
mysql > use mysql;
估计还会没有权力修改的。
在使用root帐号无法登录?你是不是修改什么东西?
将 mysql 卸载
删除 /var/lib/mysql 目录
删除 /etc/my.cnf 文件
参考:
http://www.ubuntu.org.cn/support/docume ... ver/apache
mysql > use mysql;
估计还会没有权力修改的。
在使用root帐号无法登录?你是不是修改什么东西?
将 mysql 卸载
删除 /var/lib/mysql 目录
删除 /etc/my.cnf 文件
参考:
http://www.ubuntu.org.cn/support/docume ... ver/apache
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
我也不太清楚哪儿配置错了!oneleaf 写了:mysql > show databases;
mysql > use mysql;
估计还会没有权力修改的。
在使用root帐号无法登录?你是不是修改什么东西?
将 mysql 卸载
删除 /var/lib/mysql 目录
删除 /etc/my.cnf 文件
参考:
http://www.ubuntu.org.cn/support/docume ... ver/apache
按您的方法,出现如下问题!
root@zzl:/var/lib # apt-get install mysql-server
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
下列【新】软件包将被安装:
mysql-server
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 56 个软件未被升 级。
需要下载 0B/3537kB 的软件包。
解压缩后会消耗掉 8647kB 的额外空间。
Preconfiguring packages ...
选中了曾被取消选择的软件包 mysql-server。
(正在读取数据库 ... 系统当前总共安装有 64079 个文件和目录。)
正在解压缩 mysql-server (从 .../mysql-server_4.0.23-3ubuntu2_i386.deb) ...
正在设置 mysql-server (4.0.23-3ubuntu2) ...
Stopping MySQL database server: mysqld.
WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
root@zzl:/etc # cd mysql/
root@zzl:/etc/mysql # ls
debian.cnf
root@zzl:/etc/mysql #
安装以后没有配置文件啊!!!!!
mysql 安装不了了!!!谢谢!!各位大哥的帮忙!!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
那位大哥把配置文件共享一下,好不好!!
是不是找一个没问题的配置文件拷贝过来就没问题了!!
如果是,兄弟们可不可以共享一下!!!谢谢你们了!!
哎,也不知道我怎么弄的,给大家添了这么多麻烦!实在不好意思了!
如果是,兄弟们可不可以共享一下!!!谢谢你们了!!
哎,也不知道我怎么弄的,给大家添了这么多麻烦!实在不好意思了!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
是这样啊!!!
哦,原来是这样啊,谢谢兄弟了!!!firehare 写了:安装/etc/mysql/my.cnf文件的包不是Mysql-server,而是Mysql-common包文件,所以你要重装的包应该是Mysql-common!最好是先用新立得彻底删除,再重装一次!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
- zhouzhanlun
- 帖子: 50
- 注册时间: 2005-07-16 4:06
解决了,谢谢大家!!
升级!覆盖安装了4.10a,又按兄弟们的方法配置了一下,ok!!
谢谢大家!!!
谢谢大家!!!
HP compaq nx9040(PK160PA-AB2)
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com
Intel Pentium M(Dothan) 725(1.6G)
DDR 512M
Intel Extreme2
E-mail:8666@vip.sohu.com