mysql 5.7.5 m15 winx64裝置設置裝備擺設辦法圖文教程。本站提示廣大學習愛好者:(mysql 5.7.5 m15 winx64裝置設置裝備擺設辦法圖文教程)文章只能為提供參考,不一定能成為您想要的結果。以下是mysql 5.7.5 m15 winx64裝置設置裝備擺設辦法圖文教程正文
win7 64位下若何裝置設置裝備擺設mysql-5.7.5-m15-winx64
間隔前次裝置MySQL曾經曩昔很久了。步調這些,有能夠會忘卻。簡略記載一下吧。(參考了一些收集上的博客。)
1.mysql-5.7.5-m15-winx64.zip下載
官方網站下載地址:http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.5-m15-winx64.zip
2.解壓到D:\MySqlDataBase
3.在D:\MySqlDataBase\mysql-5.7.5-m15-winx64下新建my.ini設置裝備擺設文件
內容以下:
####################設置裝備擺設文件開端################### # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/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] default-character-set=utf8 [mysqld] port=3306 basedir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/" datadir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" tmpdir ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" socket ="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql.sock" log-error="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql_error.log" #server_id = 2 #skip-locking max_connections=100 table_open_cache=256 query_cache_size=1M tmp_table_size=32M thread_cache_size=8 innodb_data_home_dir="D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" innodb_flush_log_at_trx_commit =1 innodb_log_buffer_size=128M innodb_buffer_pool_size=128M innodb_log_file_size=10M innodb_thread_concurrency=16 innodb-autoextend-increment=1000 join_buffer_size = 128M sort_buffer_size = 32M read_rnd_buffer_size = 32M max_allowed_packet = 32M explicit_defaults_for_timestamp=true sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ####################設置裝備擺設文件停止###################
重點是以下設置裝備擺設,個中datadir的目次稱號必需是:D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/。
4.在windows體系情況變量path,參加以下內容
D:\mysql\mysql-5.7.5-m15-winx64\bin;(留意加分號)
5、將mysql注冊為windows體系辦事
詳細操作是在敕令行中履行以下敕令(須要以治理員身份運轉敕令行):
須要切換到bin目次,不然,會將辦事目次指定為C:\Program Files\MySQL\MySQL Server 5.7\mysqld
增長辦事敕令:mysqld install MySQL --defaults-file="D:\mysql\mysql-5.7.5-m15-winx64\my.ini"
移除辦事敕令為:mysqld remove
6.第5步勝利後,翻開體系辦事治理
可以看到mysql體系辦事
在敕令行啟動mysql敕令為:net start mysql
封閉mysql敕令為:net stop mysql
7.修正root的暗碼為wenthink
敕令行履行:mysql –uroot
mysql>show databases; mysql>use mysql; mysql> UPDATE user SET password=PASSWORD('wenthink') WHERE user='root'; mysql> FLUSH PRIVILEGES; mysql> QUIT
長途上岸設置裝備擺設
許可root用戶在任何處所停止長途登錄,並具有一切庫任何操作權限,詳細操作以下:
1)在本機先應用root用戶登錄mysql:
敕令行履行:mysql -u root -p
輸出暗碼(第7步中設置的暗碼):wenthink
2)停止受權操作:
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
重載受權表:mysql>FLUSH PRIVILEGES;
加入mysql:quit
出色專題分享:mysql分歧版本裝置教程 mysql5.7各版本裝置教程
以上就是本文的全體內容,願望對年夜家的進修有所贊助,也願望年夜家多多支撐。