{"id":10855,"date":"2015-08-12T09:36:03","date_gmt":"2015-08-12T14:36:03","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=10855"},"modified":"2015-08-12T09:36:03","modified_gmt":"2015-08-12T14:36:03","slug":"mysql-5-install-mysql-5-in-windows-7","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=10855","title":{"rendered":"MySQL 5: Install MYSQL 5 in Windows 7"},"content":{"rendered":"<p>* Download and extract <em>mysql-noinstall-5.1.30-win32.zip<\/em> to <em>c:\\prog<\/em> directory<br \/>\n* Rename extracted folder from <em>mysql-5.1.30-win32<\/em> to <em>mysql<\/em><br \/>\n* Give full control of the folder to <em>LOCAL_SERVICE<\/em><\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_1_permission_localsvc.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_1_permission_localsvc-246x300.jpg\" alt=\"mysql51_1_permission_localsvc\" width=\"246\" height=\"300\" class=\"aligncenter size-medium wp-image-10675\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_1_permission_localsvc-246x300.jpg 246w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_1_permission_localsvc.jpg 367w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><\/a><\/h6><\/span>\n<p>* Change directory to <em>c:\\prog\\mysql<\/em> and copy <em>my-medium.ini<\/em> to <strong><em>my.ini<\/em><\/strong><br \/>\n* Edit <em>my.ini<\/em>, append following lines to <em>[mysqld]<\/em> section:<\/p>\n<pre lang=\"bash\">\r\nbasedir = c:\\prog\\mysql\r\ndatadir = c:\\prog\\mysql\\data\r\n# Also increase max_allowed_packet\r\nmax_allowed_packet = 64M\r\n<\/pre>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_2_myini.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_2_myini.jpg\" alt=\"mysql51_2_myini\" width=\"273\" height=\"210\" class=\"aligncenter size-full wp-image-10676\" \/><\/a><\/h6><\/span>\n<p>* Copy <em>my.ini<\/em> to <em>c:\\windows<\/em> directory<br \/>\n* Install MySQL as a service by opening a privileged DOS command window and enter:<\/p>\n<pre lang=\"bash\">\r\ncd c:\\prog\\mysql\\bin\r\nmysqld.exe --install MySQL --defaults-file=c:\\windows\\my.ini --local-service\r\n<\/pre>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_3_installAsSvc.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_3_installAsSvc-300x79.jpg\" alt=\"mysql51_3_installAsSvc\" width=\"300\" height=\"79\" class=\"aligncenter size-medium wp-image-10677\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_3_installAsSvc-300x79.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2015\/04\/mysql51_3_installAsSvc.jpg 645w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Start service:<\/p>\n<pre lang=\"bash\">\r\nnet start mysql\r\n<\/pre>\n<p>* Set root password:<\/p>\n<pre lang=\"bash\">\r\nmysqladmin.exe -u root password \"Welcome1\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>* Download and extract mysql-noinstall-5.1.30-win32.zip to c:\\prog directory * Rename extracted folder from mysql-5.1.30-win32 to mysql * Give full control of the folder to LOCAL_SERVICE * Change directory to c:\\prog\\mysql and copy my-medium.ini to my.ini * Edit my.ini, append following &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=10855\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19,110],"tags":[141,560,596],"class_list":["post-10855","post","type-post","status-publish","format-standard","hentry","category-mysql","category-win7","tag-install","tag-mysql","tag-win7"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-2P5","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10855"}],"version-history":[{"count":2,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10855\/revisions"}],"predecessor-version":[{"id":10857,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/10855\/revisions\/10857"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}