Advertisement
Guest User

Untitled

a guest
Feb 11th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. local.ERROR: PDOException: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '192.168.0.50' (13) in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:119
  2.  
  3. [mysqld]
  4. port = 3337
  5. #bind-address = 127.0.0.1
  6. datadir=/var/lib/mysql
  7. socket=/var/lib/mysql/mysql.sock
  8. # Disabling symbolic-links is recommended to prevent assorted security risks
  9. symbolic-links=0
  10. # Settings user and group are ignored when systemd is used.
  11. # If you need to run mysqld under a different user or group,
  12. # customize your systemd unit file for mariadb according to the
  13. # instructions in http://fedoraproject.org/wiki/Systemd
  14.  
  15. [mysqld_safe]
  16. log-error=/var/log/mariadb/mariadb.log
  17. pid-file=/var/run/mariadb/mariadb.pid
  18.  
  19. #
  20. # include all files from the config directory
  21. #
  22. !includedir /etc/my.cnf.d
  23.  
  24. B_CONNECTION=mysql
  25. DB_HOST=192.168.0.50
  26. DB_PORT=3337
  27. DB_DATABASE=darwindeveloper
  28. DB_USERNAME=admindb
  29. DB_PASSWORD=admindb
  30.  
  31. mysql -u admindb -h 192.168.0.20 -P 3337 -p
  32. Enter password:
  33. ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.20' (111)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement