Comments on: Securing your MySQL installation http://switch.richard5.net How to build your Mac into a internet server using open source software Tue, 17 Jun 2008 18:25:42 +0000 hourly 1 http://wordpress.org/?v=3.2.1 By: TigerKR http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-31668 TigerKR Mon, 02 Jul 2007 03:11:25 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-31668 I was not able to run mysql from the terminal. I would get the error: ~: mysql ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: NO) I was able to workaround this by typing ~: mysql -u root -p and then when it asks for a password, don't enter one, just hit the return key I was not able to run mysql from the terminal. I would get the error:

~: mysql
ERROR 1045 (28000): Access denied for user ‘username’@'localhost’ (using password: NO)

I was able to workaround this by typing

~: mysql -u root -p

and then when it asks for a password, don’t enter one, just hit the return key

]]>
By: Richard5 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-6483 Richard5 Tue, 14 Nov 2006 01:24:04 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-6483 @James, thanks typo is fixed ! @James, thanks typo is fixed !

]]>
By: James Brown http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-6478 James Brown Tue, 14 Nov 2006 00:30:58 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-6478 Small typo Richard: in second last sentence of third last paragraph it reads: Local communication will be still possible throw the mysql.sock socket. Should be: Local communication will be still possible through the mysql.sock socket. Small typo Richard: in second last sentence of third last paragraph it reads:

Local communication will be still possible throw the mysql.sock socket.

Should be:

Local communication will be still possible through the mysql.sock socket.

]]>
By: Michael http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-6118 Michael Sat, 11 Nov 2006 19:54:55 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-6118 Richard5, absolutely, but it does keep the trivial scripts from hitting it. It protects against script kiddies and not much else. If you choose to keep it open, it doesn't hurt to change the port. It's no substitute for good security, or a firewall rule that restricts access to a limited range of domains. Richard5, absolutely, but it does keep the trivial scripts from hitting it. It protects against script kiddies and not much else. If you choose to keep it open, it doesn’t hurt to change the port.

It’s no substitute for good security, or a firewall rule that restricts access to a limited range of domains.

]]>
By: Richard5 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-6116 Richard5 Sat, 11 Nov 2006 19:28:22 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-6116 @Michael, security by obscurity is never a serious solution. A serious hacker always does a complete portscan and will notice the difference in portnumber. @Michael, security by obscurity is never a serious solution. A serious hacker always does a complete portscan and will notice the difference in portnumber.

]]>
By: Michael http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-6113 Michael Sat, 11 Nov 2006 18:45:26 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-6113 Another way to make mysql more secure, if you're keeping the networking, is to use a port other than 3306. Pick a random number, like 13579 and use that. You won't get a logfile full of password crack attempts. Another way to make mysql more secure, if you’re keeping the networking, is to use a port other than 3306. Pick a random number, like 13579 and use that. You won’t get a logfile full of password crack attempts.

]]>
By: Paul http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/comment-page-1/#comment-2583 Paul Sat, 19 Aug 2006 20:13:47 +0000 http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/securing-your-mysql-installation/#comment-2583 Most (if not all) the above can be done by running the script that comes with MySql: cd /usr/local/mysql/bin sudo mysql_secure_installation Answer the questions that are put to you and thats pretty much it. Most (if not all) the above can be done by running the script that comes with MySql:

cd /usr/local/mysql/bin
sudo mysql_secure_installation

Answer the questions that are put to you and thats pretty much it.

]]>