At-least for me, configuring MySQL zip archive on server by reading MySQL team's unfriendly, multi-navigational document has been quite a challenging task.
Here is my simplified version:
Here is my simplified version:
- Download mysql noninstall zip from here: http://dev.mysql.com/downloads/mysql/
- Extract do C:\mysql folder
- Under c:\mysql folder you will find my-default.ini file, make a copy of it and rename it to my.ini
- Open my.ini in notepad, You will find basedir and datadir as commented statements, just uncomment them (by removing # from the starting position of each line) and do the changes shown below
- basedir = c:\\mysql #installatin directory
- datadir = c:\\data #data directory, it can be in some other drive too!
- Open cmd.exe as administrator and type below commands one after the other
- Go to bin folder where mysqld.exe file is present
- cd c:\mysql\bin
- Below command will initialize the data directory, by reading my.ini file (in our case its in c:\mysql folder)
- mysqld --initialize-insecure
- Install mysql as background running service in Windows.
- mysqld --install
- Verify MySQL server service installation
- in command prompt just type services.msc and hit enter
- and look for MySQL service in the services list, set it as "Automatic"
- That's it!
- MySQL server will be up and running and can be accessed over 3306 port
- Download and install the MySQL Workbench and connect to server as root with no password.
Uninstalling MySQL
- open command prompt in administrative mode
- Stop the mysqld for service activity
- net stop MySQL
- Uninstall the serivce
- sc delete MySQL
- Delete the c:\mysql folder
One of the best info out there for you to setup MySQL on Ubuntu
Comments