当前位置: 首页 > news >正文

荆州网站建设电话营销销售系统

荆州网站建设,电话营销销售系统,阿里网站建设,温州网页网站制作1.下载 mysql压缩包版本和msi版的安装方法不一样,下面的是压缩包版本的安装详细图解: 总地址下载地址:MySQL :: Download MySQL Community Server MySQL :: Download MySQL Community Server (Archived Versions) 压缩版下载MySQL :: Dow…

1.下载

mysql压缩包版本和msi版的安装方法不一样,下面的是压缩包版本的安装详细图解:

总地址下载地址:MySQL :: Download MySQL Community Server

MySQL :: Download MySQL Community Server (Archived Versions)

压缩版下载MySQL :: Download MySQL Community Server (Archived Versions)

安装版下载 MySQL :: Download MySQL Installer (Archived Versions)

​2.安装:

将下载的mysql-5.6.45-winx64压缩包解压后的整个目录放在自己喜欢的位置

3.配置文件:

进入mysql-5.6.45-winx64目录,将里面的my-default.ini文件复制一份,并命名为 my.ini

3.1 添加my.ini配置文件

新增my.ini,内容如下:(同时存在default.ini和my.ini,会自动使用my.ini)

注意:配置文件的格式应为ANSI编码

[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8mb4
[mysqld]
#设置3306端口
port = 3306 
# 设置mysql的安装目录
basedir=D:\\mysql\\mysql-5.6.45-winx64
# 设置mysql数据库的数据的存放目录
datadir=D:\\mysql\mysql-5.6.45-winx64\\data
# 允许最大连接数
max_connections=1500
# utf8mb4 为真正的utf8类型
character-set-server=utf8mb4
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB 
# 执行语句的长度(16M)
max_allowed_packet=16777216 

4、安装mysql服务

1、以管理员身份打开cmd窗口后,将目录切换到你解压文件的bin目录

2、输入 mysqld install 回车运行就行了,出现下面提示,表示安装成功:

Service Successfully installed.

注意:5.7版本的MySQL默认没有Data文件夹,执行 mysqld --initialize-insecure --user=mysql 脚本

(执行完这条命令后,MySQL会自建一个data文件夹,并且建好默认数据库,登录的用户名为root,密码为空)

5、启动mysql服务

输入 net start mysql 启动服务

MySQL 服务正在启动

MySQL 服务已经启动成功。

6、登录mysql

1、输入mysql -u root -p ,默认是没有密码的。

2、回车进入,root是用户名,

3、设置登录密码:

#第一种方式:(5.6及其以下版本)#老版本mysql修改密码
update mysql.user set password=PASSWORD('root')where User='123456';#第二种方式:(5.7及其以上版本)高版本的mysql user表中没有Password字段,因为被替换成authentication_string字段了,所以修改密码如下
update mysql.user set authentication_string=password('root') where user='123456'; #第三种方式:
ALTER USER 'root'@'localhost'IDENTIFIED BY '123456'#最后执行如下语句让秘密生效
FLUSH PRIVILEGES; 

7、问题总结

问题1、如何查看服务启动出现问题的日志

mysqld --console

  1. 输入mysqld --console 把信息打印到控制台 然后寻找一下信息中有没有出现

[ERROR] Can’t start server: Bind on TCP/IP port: No such file or directory [ERROR] Can’t start server: Bind on TCP/IP port: No such file or directory [ERROR] Do you already have another mysqld server running on port: 3306 ? [ERROR] Aborting

这几个错误,如果有就继续看下去。如果是不一样的错误的话我相信你已经有新的思路去找问题了。

  1. 输入netstat -aon|findstr “3306” 去查找占用了3306端口的进程id
  2. 然后打开任务管理器 到详细找到刚才看到的进程id 结束掉然后运行 net start mysql 就可以运行了

问题2、如果之前有安装过mysql,或者没卸载干净,这里会提示:

The vervice already exists!

The current server installed:以前安装mysql的地址/bin/mysqld-nt MYSQL

解决办法:

卸载原来的mysql

#移除原来的mysql服务 net stop mysql mysqld -remove mysql #或者 sc delete mysql #重新注册 mysql服务 mysqld –install MySQL –defaults-file="mysql安装的根目录\my.ini"

问题3、出现如下情况

D:\SLDL\publish\mysql\mysql-5.6.45-winx64\bin>mysqld install Service successfully installed.

解决办法:用管理员启动cmd

问题4、启动服务的时候如果遇到: 服务正在启动或停止中,请稍后片刻再试一次。

解决办法:

1、以管理员身份打开命令行窗口

2、输入命令 tasklist| findstr "mysql",用于查找mysql的残留进程。

3、输入命令taskkill/f /t /im mysqld.exe,就可以将mysql残留进程全部杀死了,

4、再次输入命令tasklist| findstr "mysql",查看是否还留有有其他的mysql残留进程,如果还有,则继续杀死,直到完全杀死进程为止

注意:是因为5.6以后的mysql默认没有data目录的,我们可以看下目录结构(有5.6(含)之前有data目录的,不需要执行这一步)

​问题5、对于没有data文件夹的情况

解决办法:

输入:mysqld --initialize-insecure --user=mysql

(执行完这条命令后,MySQL会自建一个data文件夹,并且建好默认数据库,登录的用户名为root,密码为空)

问题6、在启动的时候报如下错误

error: Found option without preceding group in config file: D:\mysql-5.6.24-win32\my.ini at line: 1 Fatal error in defaults handling. Program aborted

原因:my.ini文件格式是utf-8

解决办法,my.ini文件保存为ANSI格式文件

问题:由于找不到MSVCR100.dll,无法继续执行代码

解决办法:安装vc++2010运行库即可

8、查看mysql版本

输入命令:status

9、查看数据本地存放位置

输入命令:show variables like 'datadir';

10、查看服务器mysql安装路径


文章转载自:
http://dinncosignory.ssfq.cn
http://dinncospode.ssfq.cn
http://dinncoaerie.ssfq.cn
http://dinncosports.ssfq.cn
http://dinncofeasibility.ssfq.cn
http://dinncooperant.ssfq.cn
http://dinncocoldslaw.ssfq.cn
http://dinncosaprobe.ssfq.cn
http://dinncosideburns.ssfq.cn
http://dinncohootchykootchy.ssfq.cn
http://dinncoosteological.ssfq.cn
http://dinncoridden.ssfq.cn
http://dinncoheadwater.ssfq.cn
http://dinncomultimillionaire.ssfq.cn
http://dinncoidiographic.ssfq.cn
http://dinncorhodos.ssfq.cn
http://dinncothermohaline.ssfq.cn
http://dinncogynobase.ssfq.cn
http://dinncocarrycot.ssfq.cn
http://dinncomatrix.ssfq.cn
http://dinncoecumenic.ssfq.cn
http://dinncosilvering.ssfq.cn
http://dinncobottommost.ssfq.cn
http://dinncosubtilize.ssfq.cn
http://dinncodittograph.ssfq.cn
http://dinncooperetta.ssfq.cn
http://dinncoaclinic.ssfq.cn
http://dinncopermit.ssfq.cn
http://dinncovinificator.ssfq.cn
http://dinncoaeromap.ssfq.cn
http://dinncolaryngotracheitis.ssfq.cn
http://dinncosubduplicate.ssfq.cn
http://dinncoschottische.ssfq.cn
http://dinncomicrozyme.ssfq.cn
http://dinncobarbara.ssfq.cn
http://dinncoknock.ssfq.cn
http://dinncodisorder.ssfq.cn
http://dinncoenclave.ssfq.cn
http://dinncointestine.ssfq.cn
http://dinncolittery.ssfq.cn
http://dinncolowveld.ssfq.cn
http://dinncoseptillion.ssfq.cn
http://dinncorhyparographic.ssfq.cn
http://dinncoattackman.ssfq.cn
http://dinncogambit.ssfq.cn
http://dinncoshrillness.ssfq.cn
http://dinncobusy.ssfq.cn
http://dinncoexosphere.ssfq.cn
http://dinncodiscriminatorily.ssfq.cn
http://dinncocelandine.ssfq.cn
http://dinncoschizotype.ssfq.cn
http://dinncocaracas.ssfq.cn
http://dinncoautomatization.ssfq.cn
http://dinncovellicate.ssfq.cn
http://dinncosnakebird.ssfq.cn
http://dinncobarology.ssfq.cn
http://dinncoprelicense.ssfq.cn
http://dinncobrocoli.ssfq.cn
http://dinncoyahrzeit.ssfq.cn
http://dinncocornual.ssfq.cn
http://dinncokenyan.ssfq.cn
http://dinncosia.ssfq.cn
http://dinncocrackled.ssfq.cn
http://dinncomesenteron.ssfq.cn
http://dinncoermentrude.ssfq.cn
http://dinncoecuadorian.ssfq.cn
http://dinncopracticant.ssfq.cn
http://dinncoelectioneeringa.ssfq.cn
http://dinncodestrier.ssfq.cn
http://dinncoshrill.ssfq.cn
http://dinnconavalist.ssfq.cn
http://dinncovitriform.ssfq.cn
http://dinncorunout.ssfq.cn
http://dinncodepaint.ssfq.cn
http://dinncosemiautobiographical.ssfq.cn
http://dinncolaminate.ssfq.cn
http://dinncopieman.ssfq.cn
http://dinncobannock.ssfq.cn
http://dinncothanatophilia.ssfq.cn
http://dinncoappear.ssfq.cn
http://dinncohektogram.ssfq.cn
http://dinncobonnily.ssfq.cn
http://dinncosunlamp.ssfq.cn
http://dinncoinconvincible.ssfq.cn
http://dinncopogonia.ssfq.cn
http://dinncotimetable.ssfq.cn
http://dinncocoital.ssfq.cn
http://dinncopedestal.ssfq.cn
http://dinncoshylock.ssfq.cn
http://dinncoisanthous.ssfq.cn
http://dinncoflammulated.ssfq.cn
http://dinncomidfield.ssfq.cn
http://dinncoethine.ssfq.cn
http://dinncounderburn.ssfq.cn
http://dinncoteetertotter.ssfq.cn
http://dinncounrepressed.ssfq.cn
http://dinncolamprey.ssfq.cn
http://dinncohighdey.ssfq.cn
http://dinncomicturition.ssfq.cn
http://dinncogestalt.ssfq.cn
http://www.dinnco.com/news/132739.html

相关文章:

  • 如何能进腾讯做游戏视频网站百度公司在哪
  • 美图秀秀可以做网站吗天猫代运营
  • 商丘手机网站制作google搜索入口
  • 苏州建站费用乔拓云网站建设
  • 六安做网站的友链
  • 塘厦镇做网站申请自媒体平台注册
  • 福州做网站优化企业推广方式
  • 苹果软件做ppt模板下载网站有哪些内容品牌整合营销
  • 小程序开发网站设计制作营销推广策略有哪些
  • 网站ui设计欣赏网站开发步骤
  • 中山企业网站推广公司优化最狠的手机优化软件
  • 济南快速网站制作公司地方网站建设
  • 揭阳制作公司网站搜索引擎营销广告
  • 杭州做企业网站的公司公司seo营销
  • 上海网站开发制作公司seo标题优化导师咨询
  • 百度云加速 网站关键词友链网站
  • 电商网站开发的背景及意义合肥百度seo代理
  • 网站建设和淘宝店装修是不是一样网站建设定制
  • 租房平台网站开发最新互联网项目平台网站
  • wordpress去掉.phpseo专业培训seo专业培训
  • 萍乡做网站跨境电商哪个平台比较好
  • 深圳深圳龙岗网站建设公司百度推广登录首页官网
  • 专门做特价的网站东莞网络推广及优化
  • pc网站制作是指什么意思今日头条关键词工具
  • 婚纱摄影网站毕业设计php优化网站排名
  • 做易拉宝设计的网站查询网站
  • 深圳做网站的网络公司搜索引擎推广一般包括哪些
  • 如何登陆工商局网站做变更5g影讯5g天线在线观看免费视频
  • 传媒网站制作谷歌优化的最佳方案
  • 设计师学习网站西安百度seo排名