fish_007 发表于 2004-6-14 16:12:50

请问班主和高手们关于mysql!

安装了N遍mysql******.tar.gz!
都不行!
也不知怎样搞才是正确的!晕~~~~~~~~~~~~
最后安装redhat9自带的mysql
安装后
(1)建立授权表:$ ./script/mysql_install_db
bash: ./script/mysql_install_db: 没有那个文件或

请问是不是要到安装MYSQL的安装夹!再打 ./script/mysql_install_db
redhat9自带的mysql好像是安装在/var/lib/mysql
但进/var/lib/mysql后
$ ./scri./script/mysql_install_db
bash: ./scri./script/mysql_install_db: 没有那个文件或目录
再进去/var/lib/mysql/mysql试下。
$ cd mysql
bash: cd: mysql: 权限不够

``````````````````````````````]
真的不知怎样建授权表!
还有!~
$mysql -u <your uname> -p
password:
这个<your uname>和蔼password要怎样建!!!!!

还有~~~~~~~~~(不好意思~~哦)
$ mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
是怎么回事???
是不是mysql没有启动还是什么!还是要配置一些文件~~~~~~~~???
请班主和高手们好心给个详细点的回复!~小弟谢谢先啦!!!!请打救我这只菜鸟~~~~
:cry::cry:

jiangtao9999 发表于 2004-6-14 16:45:00

1、应该是在 mysql 安装源文件夹下运行 ./script/mysql_install_db

2、应该用 root 用户安装各种软件,除非明确要求使用非 root 用户。不然许多目录不能进入,许多文件没有写权限。

3、$mysql -u <your uname> -p 里的 <your uname> 替换成你的用户名。password: 时输入密码(这里应该没有回显)

4、mysql 命令是启动 MySQL 的命令行客户端,并不是启动 MySQL 服务,启动服务应该是 mysqld 。

建议观看 INSTALL 帮助文件,里面有详细的安装帮助。

fish_007 发表于 2004-6-14 21:53:35

请问班主:
我重新下载了个mysql二进源码安装!
安装过程中:来到这一步!!!!有这样的提示是什么意思!
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
./bin/mysqladmin -u rootpassword 'new-password'
./bin/mysqladmin -u root -h fishpassword 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

$ cd /etc/rc.d/init.d


# cp /usr/local/mysql/support-files/mysql.server mysql

# chmod +x mysql
# /sbin/chkconfig --del mysql
# /sbin/chkconfig --add mysql
# /etc/rc.d/init.d/mysql start
# Starting mysqld daemon with databases from /usr/local/mysql/data
040614 21:04:28mysqld ended

# /etc/rc.d/init.d/mysql start
# Starting mysqld daemon with databases from /usr/local/mysql/data
040614 21:04:59mysqld ended

jiangtao9999 发表于 2004-6-15 10:50:00

那个提示是告诉你:不要忘记设置 MySQL 的 root 密码

cd . ; ./bin/safe_mysqld & 是启动 MySQL 的命令

我怀疑你的 MySQL 启动方法有问题
页: [1]
查看完整版本: 请问班主和高手们关于mysql!