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

mysql> SOURCE [路径]文件名

mysql>  SOURCE [路径]文件名
有两种写法:
1、
mysql>  SOURCE cr_pet_tbl.sql
这个时候,cr_pet_tbl.sql必须放在你的mysql/bin目录下面,即跟mysql.exe同一目录
2。
mysql>  SOURCE c:\cr_pet_tbl.sql
这个时候位置位置正确即可,


相关文档:

MySQL常用的导入导出命令

常用的:
导出
mysqldump -hyour_host -uyour_username -pyour_password database_name > file.sql
导入
mysql -hyour_host -uyour_username -pyour_password database_name < file.sql
或者先用mysql客户端登陆后,
>\. file.sql
也可以完成导入功能
上面的两个命令结合起来用,可以完成将一个数据库的 ......

在mysql数据库中修改root的密码

下面我给大家介绍几种在mysql数据库中修改root密码的方法
方法一:
原始密码是 ckh
mysql -uroot -pckh
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 5.0.22-community-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
my ......

mysql添加用户

mysql添加用户方法 
建立数据库gamesp
create database gamesp;

加用户
grant  all  on  数据库名.*   to   用户

@localhost  identified  by  '密码';
grant all on gamesp.* to
newuser@localhost
identified by
'pas ......

mysql错误提示及资料总结

mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@localhost]# mysql -u root -p
Enter password:
ERROR 2002 (H ......

hibernate mysql 存储二进制文件问题总结

先说明一下Blob的类型,直接从网上摘抄了!!!
1、MySQL有四种BLOB类型:
  ·tinyblob:仅255个字符
  ·blob:最大限制到65K字节
  ·mediumblob:限制到16M字节
  ·longblob:可达4GB
2、除了类型对后面存取文件大小有限制,还要修改mysql的配置文件。
  Windows、linux基本一样 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号