linux 下 MySQL源码包的安装
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-03
n/mysqladmin -u root -h localhost.localdomain password ''new-password'' See the manual for more instructions. You can start the MySQL daemon with: cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe & You can test the MySQL daemon with the benchmarks in the ''sql-bench'' directory: cd sql-bench ; perl run-all-tests Please report any problems with the /usr/local/mysql/bin/mysqlbug script! The latest information about MySQL is available on the web at [url]http://www.mysql.com[/url] Support MySQL by buying support/licenses at [url]http://shop.mysql.com[/url] [root@localhost mysql]# [root@localhost mysql]# chown -R root . 改变当前目录的所有属主为root -R 为递归(即其下所有的子文件的属主也随之改为root) [root@localhost mysql]# chown -R mysql var 改变var的属主为mysql [root@localhost mysql]# chgrp -R mysql . 改变当前目录的属组为mysql [root@localhost mysql]# [root@localhost mysql]# bin/mysqld_safe --user=mysql & 后台启动mysql服务 &为后台启动 [1] 17776 [root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/var [root@localhost mysql]# [root@localhost mysql]# /usr/local/mysql/bin/mysql 登陆到mysql数据库 Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 1 to server version: 4.0.27-log Type ''help;'' or ''h'' for help. Type ''c'' to clear the buffer. mysql> mysql> show databases ; 基本的查看数据库命令 ---------- | Database | ---------- | mysql | | test | |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于linux 下 MySQL源码包的安装的所有评论