본문 바로가기

개발/mysql5

계정 접속 오류 'root'@'localhost' root password 변경, mariaDB version 11.3.2 문제 인텔리제이에 mariadb 설정을 하려고 하는데 아래와 같이 계정에 연결할 수 없다는 알림이 떴다. Access denied for user 'root'@'localhost' password를 변경하기위해 mariadb에서 아래의 명령어를 입력해줬다. alter user 'root'@'localhost' identified with mysql_native_password by 'passworde'; You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'alter user 'root'@'localhost' ide.. 2024. 3. 29.
[MAC] homebrew mysql 나가기 / 실행중지 명령어 1. mysql 모니터창에서 나가기 mysql> exit Bye 2. brew 에서 mysql 실행 중지 $ brew services stop mysql Stopping `mysql`... (might take a while) ==> Successfully stopped `mysql` 2022. 1. 17.
[MAC] mysql database생성하기 1. mysql 시작 $ brew services start mysql // mysql 시작 $ mysql -uroot // mysql 모니터로 들어가기 2. mysql 에 기본적으로 생성되는 데이터베이스는 다음과 같다. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 3. 새로운 데이터베이스를 추가하기 위해서 다음의 명령어 사용 mysql> create database 원하는이름; Query OK, 1 row affected // 이 메세지가 뜨면 잘 .. 2022. 1. 17.
[MAC] homebrew mysql 설치 / 삭제 mac homebrew 에 mysql 설치하는 법 1. homebrew 가 없다면 home brew 설치 $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. brew 업데이트 해주기 $ brew update 3. mysql 관련 프로그램 검색 (확인하는 명령어라 넘어가도 된다.) $ brew search mysql 4. mysql 설치 - 버전을 정해주고 싶다면 mysql@5.7 이렇게 버전 설정하기 $ brew install mysql 그리고 설치 될 때 문구를 한 번 싸악 봐준다. (에러를 줄일 수 있다) 5. mysql 실행 $ brew services start m.. 2022. 1. 12.