易截截图软件、单文件、免安装、纯绿色、仅160KB

Fedora下Mysql的简单使用

转到附录1(mysql 命令大全 - 命令详解

转到附录2(mysql乱码问题解决方法

在我的Fedora中,在系统安装时我就选择安装了Mysql了,所以就不用再去下载源代码,然后去慢慢编译。哈哈,偷了一个懒。
系统安装好了,Mysql时必不可少的,所以一定要检验一下Mysql可以用不。
首先切换到root账户,然后输入命令:service mysqld start
系统显示如下:
初始化 MySQL 数据库: Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h stony password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!     [确定]
正在启动 mysqld:                                                                                [确定]
看来Mysql的服务可以启动起来,应该问题不大了。
马上添加root密码,mysqladmin -u root  password xxxxxx
登录以下,输入命令:mysql -u root -p
请求输入密码,输入密码,进入了!^_^   
到这里,应该基本上可以说Mysql是没有问题的了。时间不早了,今天的Mysql就弄到这里。明天开始


相关文档:

MySQL常用命令

1. 给root加密码:/usr/bin/mysqladmin -u root password 123456
2. 导出:mysqldump -u root -p dbname > file.sql
3. 导入:mysql -u root -p dbname < backup-file.sql
4. 授权:grant all on *.* to root@"%" identified by "密码";
5. 收回权限:revoke all privileges on *.* from root@"%";
6. 登录:mys ......

Linux下mysql安装配置入门知识

1、下载MySQL的Linux安装文件
  Linux下安装MySQL需要下面两个文件:
   MySQL-server-5.1.7-0.i386.rpm
  下载地址为:http://dev.mysql.com/downloads/mysql/5.1.html,打开此网页,下拉网页找到“Linux x86 generic RPM (statically linked against glibc 2.2.5) downloads”项,找到“Ser ......

[转载]MYSQL常见出错代码解析

 1005:MYSQL创建表失败
  
  1006:MYSQL创建数据库失败
  
  1007:MYSQL数据库已存在,创建数据库失败
  
  1008:MYSQL数据库不存在,删除数据库失败
  
  1009:MYSQL不能删除数据库文件导致删除数据库失败
  
  1010:MYSQL不能删除数据目录导致删除数据库失败
  
 &nbs ......

mysql问题集总

安装配置mysql
http://edu.codepub.com/2009/1213/18710.php
一、
下载编译安装
#cd /usr/local/src/
#wget http://mysql.byungsoo.net/Downloads/MySQL-5.1/mysql-5.1.38.tar.gz
#tar –xzvf mysql-5.1.38.tar.gz ../software/
#./configure
--prefix=/usr/local/mysql //MySQL安装目录
--datadir=/mydata / ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号