728x90
"mysql" is the basic command to start the MySQL client, which is used to connect to and interact with a MySQL server. This command assumes that you want to connect to the MySQL server as the current operating system user.
"mysql -u root -p" specifies the MySQL user account that you want to use to connect to the MySQL server. "root" is the username, and "-p" is the option that prompts for a password. So, this command connects to the MySQL server as the "root" user, and you need to enter the password for that user to access the MySQL server.
728x90
'데이터베이스 > mySQL' 카테고리의 다른 글
what is difference between 'databases' and 'schema' (0) | 2023.02.09 |
---|---|
how to fix Error 'SELECT command denied to user ''@'localhost' for table `mysql`.`user`' in dbeaver (0) | 2023.02.08 |
mysql EVENT스케줄러 (자동생성) (0) | 2022.05.18 |
피보나치 수열 사용해서 이자액 빼기..실패.. (0) | 2022.05.13 |
mysql null값 뜨는 이유, where조건문...empty set (0) | 2022.05.13 |