
MySQL技术专区
zzz_robinson
本人是个学生!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
the security settings could not be applied to the database (error 1045 MySQL)
<br />在装mysql时,总是到最后启动的时候出错,出错内容如下: <br /> <br /> <br />就是最后的Apply security setting过不去<br />提示:<br />The security settings could not be applied to the database because the connection has failed with the following error.<br />Error Nr. 1045<br />Access deni原创 2010-07-28 15:20:00 · 2308 阅读 · 3 评论 -
报错:搞Value '0000-00-00' can not be represented as java.sql.Date
<br />java.sql.Date; nested exception is java.sql.SQLException: Value '0000-00-00 00:00:00' <br />can not be represented as java.sql.Date <br /> <br />碰到这问题开始不知道觉的很怪,设置show_sql后把打印出来的语句放到mysql客户端运行正确,但在eclipse<br /> <br />中junit调试就报错,后来发现时表中的data类型字段里面不能原创 2011-03-10 14:58:00 · 996 阅读 · 0 评论 -
MYSQL命令大全
<br />常见的MySQL命令大全2007-11-09 17:59一、连接MySQL<br /> 格式: mysql -h主机地址 -u用户名 -p用户密码<br /> 启动服务:net start mysql ;<br /> 停止服务:net stop mysql;<br /> 1、例1:连接到本机上的MYSQL。<br /> 首先在打开DOS窗口,然后进入目录 mysql/bin,再键入命令mysql -uroot -p,回车后提示原创 2010-11-24 20:40:00 · 230 阅读 · 0 评论 -
sql语句中的Left join , Right Join, Inner Join 用法
<br />例子<br />Table A<br />aid adate <br />1 a1 <br />2 a2 <br />3 a3 <br />TableB<br />bid bdate <br />1 b1 <br />2 b2 <br />4 b4 <br />两个表a,b相连接,要取出id相同的字段 <br />select * from a inner join b on a.aid = b.bid这是仅取出匹配的数据. <br />此时的原创 2010-12-28 10:58:00 · 342 阅读 · 0 评论 -
Error No. 2003: Can't connect to MySQL server on 'localhost' (or some other host)
<br />Error No. 2003: Can't connect to MySQL server on 'localhost' (or some other host) <br /> <br /> simply means that connection is not possible for one of the following (or similar) reasons:<br /> <br />1.There is no MySQL server running at the speci原创 2010-12-21 13:15:00 · 1956 阅读 · 0 评论 -
错误提示: Column count doesn't match value count at row 1
<br />在系统运行到.sql文件中出现错误提示: Column count doesn't match value count at row 1。<br /> <br />一般是出现在insert数据时多加了一个字符段。使得与其create表时里面的字段不能匹配。<br /> <br />比如不小心在一个字符段中多加入了一个引号(' ')则就会报此错误。原创 2010-12-17 01:50:00 · 22501 阅读 · 0 评论 -
报错:Data truncated for column 'parent_id' at row1
<br />如果在运行系统.sql脚本文件时报:Data truncated for column 'parent_id' at row1 错误。<br /> <br /> <br />主要原因是在建表的列为特定类型,而所插入的数据类型没与其字段一一对应。<br /> <br />比如本来建表中字段一个int类型的,而你在insert表时有个字段写成了string类型,则就报此错误了。<br />原创 2010-12-17 01:43:00 · 15873 阅读 · 0 评论 -
数据库中导出、导入.sql数据库文件
<br /> <br /><br />(mysql的bin路径需要在系统路径中)<br />如果没在环境变量中添加bin路径,则这里要在cmd命令中直接进入bin根目录下。<br />1.将数据库mydb导出到e:/mysql/mydb.sql文件中:<br />打开开始->运行->输入cmd 进入命令行模式<br />c:/mysql/bin>mysqldump -h localhost -u root -p mydb>e:/mysql/mydb.sql<br />原创 2010-12-13 17:26:00 · 443 阅读 · 0 评论 -
错误提示:mysqldump: Got error: 1049: Unknown database 'jpa;' when selecting the database
在用命令做数据库备份过程在cmd命令框中输入C:/mysql/bin>mysqldump -uroot -p javashop es_tags es_settings>e:/tags.sql;备份不了。报错信息:mysqldump: Got error: 1049: Unknown database 'jpa;' when selecting the database,识别不了jpa这个数据库。但是我在:mysql> show databases;显示:+---------------+原创 2010-12-13 17:36:00 · 4442 阅读 · 1 评论 -
mysql绿色安装步骤归纳
<br />1.解压到安转目录:c:/mysql<br />2.在windows安装目录(一般是c:windows)下创建my.ini文件或者复制mysql根目录中的my-medium.ini文件进行修改(放在别的位置也可以,但要指定),内容如下:<br />[mysqld]<br />basedir=c:/mysql //设定mysql安装的根目录<br />datadir=C:/mysql/data //设定数据库文件的目录<br />default-character原创 2010-12-02 11:23:00 · 291 阅读 · 0 评论