摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using MySql.Data.MySqlClient;using System.Configuration;using System.Data;/** *创建人:LK *说明:数据库封装类 */namespace MySql{ public class MySQlHelper { private MySqlConnection conn = null; private MySqlComman... 阅读全文
posted @ 2014-01-16 14:27 吕坤 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 用UPDATE直接编辑user表 mysql -u root mysql> use mysql; mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root'; mysql> FLUSH PRIVILEGES;在丢失root密码的时候,可以这样 mysqld_safe --skip-grant-tables& mysql -u root mysql mysql> UPDATE user SET password=PASSWORD("ne 阅读全文
posted @ 2014-01-16 12:47 吕坤 阅读(1887) 评论(0) 推荐(0) 编辑
摘要: 1.MySQL自带工具的存放路径:D:\Program Files\MySQL\MySQL Server 5.6\bin为了方便使用,我们可以将以上路径添加到系统的环境变量path中如果你不放,则有可能在CMD中打开不了相应的程序。//截图如下:-----------------------------------------------------------------------------------------------2.本地登录MySQL命令:mysql -u root -p //root是用户名,输入这条命令按回车键后系统会提示你输入密码 //然后你输入正确的密码,再按一下回 阅读全文
posted @ 2014-01-16 12:46 吕坤 阅读(63617) 评论(0) 推荐(1) 编辑