docker mysql 没有 root 用户

docker mysql 没有 root 用户,需要创建 root

  1. flush privileges; 解决 ERROR 1290 (HY000): The MySQL server is running with the –skip-grant-tables option so it cannot execute 这个问题
  2. CREATE USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘123’;
  3. GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION;
  4. flush privileges;

xdebug3配置

xdebug2配置

zend_extension=”xdebug.so”

xdebug.remote_enable=on

xdebug.remote_port=9001

xdebug.remote_host=127.0.0.1

在升级3.0版本后,remote_enable 被mode 取代,remote_host被 client_host 取代,remote_port改为 client_port,默认为9003端口,client_host默认为 localhost,所以3之后的配置为

zend_extension=”xdebug.so”
xdebug.mode=debug
xdebug.client_host=127.0.0.1

我本地是9003端口,所以此处省略端口配置