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

mySQL简单创建数据库、表、改变数据库路径

创建数据库:
mysql>create database test;
Query OK, 1 row affected (0.02 sec)
创建数据库表:
mysql>use test;
Database changed
创建数据库表:
myaql>create table user(SID VARCHAR(11), name VARCHAT(6) );
Query OK, 0 rows affected (0.08 sec)
插入记录:
mysql>insert int user values('20081302020', '许琴琴');
Query OK, 1 row affected (0.05 sec)
查询记录:
mysql>select * from user;
+-------------+--------+
| id               | name   |
+-------------+--------+
| 20081302020 | 许琴琴 |
+-------------+--------+
1 row in set (0.00 sec)
查看文件路径:
mysql>show variables like '%dir%';
+----------------------------+--------------------------------------------------
---------------------------------+
| Variable_name              | Value
                                 |
+----------------------------+--------------------------------------------------
---------------------------------+
| basedir                    | C:\Program Files\MySQL\MySQL Server 5.1\
                                 |
| character_sets_dir         | C:\Program Files\MySQL\MySQL Server 5.1\share\cha
rsets\                           |
| datadir               &nbs


相关文档:

Can't connect to MySQL server on '' (10060)

远程连接服务器出现以上错误
主要有三个原因:
1、mysql授权表里没有远程机器的权限,及需要在授权表mysql.user添加
grant all privileges on *.* to 'root'@'远程登陆IP' identified by '远程登陆密码'
flush privileges;
2、网络不通,这个就不说了。
3、防火墙禁止3306端口,以iptable为例
vi /etc/sysconfig/ipt ......

excel数据批量导入到Mysql数据库

aspx页面
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customin.aspx.cs" Inherits="kf_customin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ......

Quick Test Setup of MySQL Cluster


To familiarize you with the basics, we will describe the simplest
possible configuration for a functional MySQL Cluster. After this,
you should be able to design your desired setup from the
information provided in the other relevant sections of this
chapter.
......

MySQL Cluster配置step by step

MySQL Cluster配置step by step
来源:http://space.itpub.net/15415488/viewspace-620903
公司有个项目是测试distributed DB,其中一项是针对MySQL Cluster的测试。
于是花了两天时间装机器和配置MySQL Cluster。整个过程还是比较顺利的,当然如果对MySQL常用命令比较熟悉的话会更顺利。
留下step by step配 ......

linux mysql忘记密码的多种解决方法。


我的系统是ubuntu6.06,最近新装好的mysql在进入mysql工具时,总是有错误提示:
# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
使用网上介绍的方法修改root用户的密码:
# mysqladmin -uroot -p password 'newpassword'
Enter pass ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号