Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. FROM php:7.1-fpm-alpine
  2. RUN docker-php-ext-install mysqli
  3.  
  4. $serverName = 'localhost';
  5. $userName = 'wp';
  6. $password = 'wp2017';
  7. $dbName = 'wp2017';
  8.  
  9. $link = mysqli_connect($serverName, $userName, $password, $dbName);
  10.  
  11. if (mysqli_connect_errno()) {
  12. printf("Connect failed: %sn", mysqli_connect_error());
  13. exit();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement