<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Schwarz Network &#187; Install mysql</title>
	<atom:link href="http://bobschwarz.com/tag/install-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://bobschwarz.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 16:41:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows: Installing MYSQL</title>
		<link>http://bobschwarz.com/installing-mysql/</link>
		<comments>http://bobschwarz.com/installing-mysql/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 17:52:02 +0000</pubDate>
		<dc:creator>Admin Reports</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Install mysql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://adminreports.com/archives/2006/01/24/installing-mysql.html</guid>
		<description><![CDATA[Now that you have PHP installed it&#8217;s time to install mysql. Mysql is the database server of choice for just about all forum software packages that run on PHP enabled servers. Installing mysql and getting it &#8230; <a class="more-link" href="http://bobschwarz.com/installing-mysql/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now that you have PHP installed it&#8217;s time to install mysql. Mysql is the database server of choice for just about all forum software packages that run on PHP enabled servers. Installing mysql and getting it ready for use on your Windows Server is very easy. At the most it shouldn&#8217;t take more than an hour or less. Lets get started.</p>
<p><span id="more-235"></span></p>
<p>First thing you want to do is head over to mysql and download the latest 4.1.x version. Just like you did when you downloaded PHP you want to download the zip. Do not download the installer package. <a href="http://dev.mysql.com/downloads/mysql/4.1.html">Download mysql here</a>.<br />
Open a remote desktop connection to your server or use an ftp client to upload the mysql zip. You can use the same procedure I outlined in <a href="http://adminreports.com/installing-php/"> Windows: Installing PHP</a> to transfer the zip. In any case you need to be connected to the server with RDP.</p>
<p>Unzip the package and you should be left with a directory named mysql-noinstall-4.1.16-win32 or something similar. Inside that folder you&#8217;ll have mysql-4.1.6-win32 dir. Rename that to mysql-4.1.16. When we installed PHP, I am assuming you read the PHP install tutorial and followed it to install PHP, you noticed I named the PHP folder in a similar way. There is a reason for this. It is much easier to upgrade to new versions. No need to overwrite any files. Windows can be quirky at time when files are overwritten. You could wind up with problems. Doing it this way you&#8217;ll never have to worry about the install not working. Doing it this way also allows you to run 2 different versions of mysql is you choose.</p>
<p>Once you renamed the folder you can move it to your C drive or whatever drive is your root drive. You should have C:\mysql-4.1.6 and inside all the mysql folders such as bin, data, and docs.<br />
Enter the mysql dir and rename my-medium.ini to my.ini.</p>
<p>Open my.ini with Notepad. You should see this:</p>
<blockquote><p>
[client]<br />
#password	= your_password<br />
port		= 3306<br />
socket		= /tmp/mysql.sock</p>
<p># Here follows entries for some specific programs</p>
<p># The MySQL server<br />
[mysqld]<br />
port		= 3306<br />
socket		= /tmp/mysql.sock<br />
skip-locking<br />
key_buffer = 16M<br />
max_allowed_packet = 1M<br />
table_cache = 64<br />
sort_buffer_size = 512K<br />
net_buffer_length = 8K<br />
read_buffer_size = 256K<br />
read_rnd_buffer_size = 512K<br />
myisam_sort_buffer_size = 8M</p>
<p>#skip-networking</p>
<p># Replication Master Server (default)<br />
# binary logging is required for replication<br />
log-bin</p>
<p># required unique id between 1 and 2^32 &#8211; 1<br />
# defaults to 1 if master-host is not set<br />
# but will not function as a master if omitted<br />
server-id	= 1</p>
<p>[mysqldump]<br />
quick<br />
max_allowed_packet = 16M</p>
<p>[mysql]<br />
no-auto-rehash<br />
# Remove the next comment character if you are not familiar with SQL<br />
#safe-updates</p>
<p>[isamchk]<br />
key_buffer = 20M<br />
sort_buffer_size = 20M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>[myisamchk]<br />
key_buffer = 20M<br />
sort_buffer_size = 20M<br />
read_buffer = 2M<br />
write_buffer = 2M</p>
<p>[mysqlhotcopy]<br />
interactive-timeout
</p></blockquote>
<p>Now we need to add a couple lines to the file.<br />
At the top of the file just under<br />
[mysqld]<br />
Add these 2 lines.</p>
<p>basedir=C:/mysql-4.1.6<br />
datadir=C:/mysql-4.1.6/data</p>
<p>Now we have to change mysql.sock path to the correct path. There are 2 places to change this. Both are at the top of the file. One in the [client] section and one just below the paths you added.<br />
Change</p>
<p>socket	= /tmp/mysql.sock<br />
to<br />
socket	= C:/mysql-4.1.6/mysql.sock</p>
<p>That&#8217;s all the editing you need to do. Once your site is getting a large amount of traffic you can tweak my.ini to optimize performance. Save the changes and close Notpad.<br />
Open a command prompt, Start > Run > cmd.exe.<br />
First start mysql to make sure everything works. To do that run this command.</p>
<p>C:\mysql-4.1.16\bin\mysqld &#8211;console</p>
<p>After it runs you should see some lines of text with the last being.</p>
<p>mysqld: ready for connections</p>
<p>If there is no errors then your ready to install mysql as a service. To do that first shutdown mysql with this command</p>
<p>C:\mysql-4.1.16\bin\mysqladmin -u root shutdown.</p>
<p>To install the service invoke this command.</p>
<p>C:\mysql\bin\mysqld-max-nt.exe  &#8211;install</p>
<p>Mysql is now set to start whenever you reboot the server. Now lets start the service. To do that invoke this command</p>
<p>net start mysql</p>
<p>You should see some text that says mysql is now ready for connections. If it doesn&#8217;t start open Services manager and scroll down to the mysql service and see if the path to the binary is correct. The only time I ever had problems was when I invoked the install command without using the full path to the binary. If you did as stated above there should be no errors.<br />
Now there is one last thing to do. Add the mysql bin directory to your path so that you can work at the command line without having to be in the mysql bin dir or using the full path to the dir.</p>
<p>To add mysql to your path right click My Computer. Select Advanced tab. Click Environment Variables. In the second box highlight PATH and select edit. Add</p>
<p>;C\mysql-4.1.16\bin</p>
<p>to the end of the path. Make sure you add it exactly as above including the ;.</p>
<p>Now open another command window and type mysql. You should see mysql > ready for connections.<br />
Close the box. Congrats you now have mysql installed. You&#8217;ll want to head over to http://mysql.com and read the documentation to set root passwords and add new users.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://bobschwarz.com/installing-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

