easy点吧 关注:3贴子:239
  • 0回复贴,共1

[简单点]在UBuntu下的Mysql数据库,一些小资料

只看楼主收藏回复

/usr/bin 客户端程序和mysql_install_db
/db 数据库和日志文件(自定义的)
/var/run mysqld 服务器
/etc/mysql mysql 配置文件my.cnf
/usr/share/mysql 字符集,基准程序和错误消息
/etc/init.d/mysql 启动mysql服务器
设置 mysql root 访问密码:
mysqladmin -uroot password <password>
启动 mysql 服务
   /etc/init.d/mysql start 或 service mysql start
停止 mysql 服务
   /etc/init.d/mysql stop 或 service mysql stop
重启 mysql 服务
   /etc/init.d/mysql restart 或 service mysql restart
进入 mysql 数据库
mysql -uroot –p
根据提示输入 root 访问密码 , 显示如下信息,表明可以开始 mysql 操作:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.50-community-log MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
ubuntu10.4系统中不需要设置mysql自启动,安装时候已经作为service。
所以一启动ubuntu系统,mysql服务自动启动。



IP属地:广东1楼2011-08-10 20:00回复