Some problems encountered in installing mysql without visual third-party tools

I installed MySQL_5.6.26_win32.msi today and encountered some problems. I want to write it down so that I can check it myself later.

The main source of reference for this article: http://blog.csdn.net/libaineu2004/article/details/47061047


Some of the same operations as other bloggers will not be written, but I will write some questions and conclusions that I found in my own practice:

1. Summary of some commands

    Installation service and removal service

    Installation service: mysqld--install

    Delete service: mysqld --remove

    Start mysql database and stop mysql database

    Start mysql: net start mysql

    Stop mysql: net stop mysql

Note: The database can be started and stopped only if the service is installed first

2. The root password problem

   At the beginning, according to the blogger’s article, by entering E:\MySQL Server 5.6\bin (the installation directory of the local database), the execution command was executed: mysqladmin -u root password 123456

Then I found that I could enter the database by entering mysql. You can also access the database using mysql -u root -p. Later, using the command "show databases;" I found that the mysql table could not be seen in the database accessed directly using the mysql command. This is probably a root authority problem. The database permissions for directly using the mysql command should be relatively small.

3. Configure environment variables

  Later, I found that every time I want to enter the database, I need to go to E:\MySQL Server 5.6\bin ( the installation directory of the local database ) to enter mysql. At this time, I thought of the environment variable path, configured the environment variable, and added path= E: \MySQL Server 5.6\bin; Later, you can directly enter mysql under other paths.

4. Failed to start mysql in cmd

When starting mysql in cmd fails,

a. Need to consider whether the mysql service is up

b. If you get up, check which path you entered MySQL under. If you don’t enter the installation path, whether the environment variables are modified

c. Other situations have not been encountered yet, so please add if you encounter them.




Guess you like

Origin blog.csdn.net/zpt912/article/details/79512925