The most detailed mysql-5.5.49 installation tutorial to ensure that you finish the installation immediately know

A, MYSQL installation

Mysql login first official website to download the installation package, the official website address: https: //dev.mysql.com/downloads/mysql/

 

 General download this like, now the latest version is 5.8, but is said to have the charges, the previous version 5.7 free of charge, you can download the previous version 5.7, there is to mysql-5.5.49 I now use as an example.

Detailed installation tutorial, please click on my speed

 

1. Open the downloaded file to install mysql mysql-5.5.27-win32.zip, double-click unzip, run "setup.exe".

          

 

 

 

2, select the type of installation, there is "Typical (default)", "Complete (full)", "Custom (user-defined)," the three options, select "Custom", press "next" to continue.

 

 

 

3. Click on "Browse", to manually specify the installation directory.

 

 

4, fill in the installation directory, mine is "F: \ Server \ MySQL \ MySQL Server 5.0", also recommended not to put the operating system on the same partition, which can prevent system backup and restore time, the data is cleared. Press "OK" to continue.

 

 After confirming completion of this path, continue to click Server data files, also need to change the path, the file is saved in a mysql database code written inside

Confirm previous settings, if there are errors, press "Back" to return to redo. Press "Install" to begin the installation.

 

 

 

 

 

 

 

5, is being installed, please wait until the following screen appears, the installation is completed MYSQL

 

 

Two, MYSQL configuration

1, the installation is complete, the following interface will enter the mysql configuration wizard.

 

 

 

 

2, select the configuration mode, "Detailed Configuration (manual precise configuration)", "Standard Configuration (standard configuration)," we choose "Detailed Configuration", to facilitate familiar with the configuration process.

 

 

3、选择服务器类型,“Developer Machine(开发测试类,mysql占用很少资源)”、“Server Machine(服务器类型,mysql占用较多资源)”、“Dedicated MySQL Server Machine(专门的数据库服务器,mysql占用所有可用资源)” 

 

 

4、选择mysql数据库的大致用途,“Multifunctional Database(通用多功能型,好)”、“Transactional Database Only(服务器类型,专注于事务处理,一般)”、“Non-Transactional Database Only(非事务处理型,较简单,主要做一些监控、记数用,对MyISAM数据类型的支持仅限于non-transactional),按“Next”继续。

 

 

5、选择网站并发连接数,同时连接的数目,“Decision Support(DSS)/OLAP(20个左右)”、“Online Transaction Processing(OLTP)(500个左右)”、“Manual Setting(手动设置,自己输一个数)”。 

 

 

 

 

6、是否启用TCP/IP连接,设定端口,如果不启用,就只能在自己的机器上访问mysql数据库了,在这个页面上,您还可以选择“启用标准模式”(Enable Strict Mode),这样MySQL就不会允许细小的语法错误。如果是新手,建议您取消标准模式以减少麻烦。但熟悉MySQL以后,尽量使用标准模式,因为它可以降低有害数据进入数据库的可能性。按“Next”继续 。

 

 

7、就是对mysql默认数据库语言编码进行设置(重要),一般选UTF-8,按 “Next”继续。

 

 

8、选择是否将mysql安装为windows服务,还可以指定Service Name(服务标识名称),是否将mysql的bin目录加入到Windows PATH(加入后,就可以直接使用bin下的文件,而不用指出目录名,比如连接,“mysql.exe -uusername -ppassword;”就可以了,不用指出mysql.exe的完整地址,很方便),我这里全部打上了勾,Service Name不变。按“Next”继续。

 

 

9、询问是否要修改默认root用户(超级管理)的密码。“Enable root access from remote machines(是否允许root用户在其它的机器上登陆,如果要安全,就不要勾上,如果要方便,就勾上它)”。最后“Create An Anonymous Account(新建一个匿名用户,匿名用户可以连接数据库,不能操作数据,包括查询)”,一般就不用勾了,设置完毕,按“Next”继续。

 

 

10、确认设置无误,按“Execute”使设置生效,即完成MYSQL的安装和配置。

 

 

 

 

注意:设置完,按“Finish”有一个比错误,就是不能“Start service”,一般出在以前有安装mysql的服器上,解决的法,先保以前安装的mysql服底卸掉了;不行的检查是否按上面一,之前的密是否有修改,照上面的操作;如果依然不行,将mysql安装目下的data文件夹备份,然后除,在安装完成后,将安装生成的 data文件夹删除,份的data文件移回来,再重启mysql服就可以了,这种情况下,可能需要将数据库检查一下,然后修一次,防止数据出错。

 

 

解决方法:

1, 卸载MySQL

2, Windows Xp系统删除目录 C:\Documents and Settings\All Users\Application Data\

windows 7\8\10操作系统删除目录C:\ProgramData\MySQL

3、重新安装就可以了

发布了44 篇原创文章 · 获赞 1 · 访问量 1万+

Guess you like

Origin blog.csdn.net/mysqlsd/article/details/103652525