mysql-5.6.17-win32免安装版配置
Mysql  /  houtizong 发布于 3年前   198
mysql-5.6.17-win32免安装版配置
mysql没有配置文件也可以启动,你可以把my-default.ini改名为my.ini,然后放到mysql安装根目录,在[mysqld]下加上character-set-server=utf8
环境变量配置
我的电脑-属性-高级-环境变量-新建
变量MYSQL_HOME 值D:\mysql
找到变量path 编辑,在后面加上 %MYSQL_HOME%\bin
D:\>cd MYSQL_HOME\bin
D:MYSQL_HOME\bin mysqld -install
提示:Service successfully installed.及即安装成功。
启动、停止、移出MYSQL服务:
启动MYSQL服务:net start mysql
停止MYSQL服务:net stop mysql
移出mysql服务:mysqld -remove
修改root密码:
运行中输入cmd ,跳到安装目录/bin下,
D:MYSQL_HOME\bin>mysql -uroot
mysql>show databases;
mysql>use mysql;
mysql>delete from User where User="";
mysql>update User set Password=PASSWORD'newpassword') where User='root';
mysql>FLUSH PRIVILEGES;
mysql>quit;
FLUSH PRIVILEGES:强制让MySQL重新加载权限,即刻生效
E RROR 1130: Host 'XXXXXX' is not allowed to connect to this MySQL server
mysql> use mysql;
mysql> update user set host = '%' where user = 'root';
无法启动MYSQL服务1067进程意外终止
在win7的服务器里开启MySql服务提示“windows无法启动mysql服务(位于本地计算机上。错误1067:进程意外终止)”
桌面--计算机--右键--管理--计算机管理(本地)--系统工具--事件查看器--windows日志--应用程序
进入“事件查看器”“应用程序”果然发现很多MySql的错误Default storage engine (InnoDB) is not available
进入MySql的安装目录找到my.ini里有一句:default-storage-engine=INNODB改成MYISAM就可以了。
启动后也可以进入 “服务”窗口,手动的启停MYSQL服务了。
如有其它问题,根据 “事件查看器” 中的错误一个个调试吧!
附上my.ini文件
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[client]
#user=root
#password = root
port=3306
default-character-set=utf8
[mysqld]
user=root
#password=root
port=3306
character_set_server=utf8
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
basedir =C:\Program Files\MySQL\MySQL Server 5.6
datadir =C:\Program Files\MySQL\MySQL Server 5.6\data
# port =3306
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[WinMySQLAdmin]
C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe
default-storage-engine=MYISAM
linux下配置数据库表名不区分大小写
/etc/my.cnf
[mysqld]
lower_case_table_names=1的用途是让MySQL实现不区分大小写
请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
技术博客集 - 网站简介:
前后端技术:
后端基于Hyperf2.1框架开发,前端使用Bootstrap可视化布局系统生成
网站主要作用:
1.编程技术分享及讨论交流,内置聊天系统;
2.测试交流框架问题,比如:Hyperf、Laravel、TP、beego;
3.本站数据是基于大数据采集等爬虫技术为基础助力分享知识,如有侵权请发邮件到站长邮箱,站长会尽快处理;
4.站长邮箱:[email protected];
文章归档
文章标签
友情链接