Browse Source

Adds local_configurations.php in place of YBDB.php.

master
Jonathan Rosenbaum 7 years ago
parent
commit
85d1099076
  1. 2
      Dockerfile
  2. 10
      YBDB.php

2
Dockerfile

@ -14,7 +14,7 @@ WORKDIR /var/www/html
RUN rm index.html; \ RUN rm index.html; \
git clone -b devel https://github.com/fspc/Yellow-Bike-Database.git . git clone -b devel https://github.com/fspc/Yellow-Bike-Database.git .
COPY YBDB.php /var/www/html/Connections/ COPY local_configurations.php /var/www/html/Connections/
# COPY populate.sql /var/www/html/sql/ # COPY populate.sql /var/www/html/sql/
# mysql_install_db solves a problem which occurs if bikebike/bikebike has not # mysql_install_db solves a problem which occurs if bikebike/bikebike has not

10
YBDB.php

@ -1,10 +0,0 @@
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_YBDB = "localhost";
$database_YBDB = "ybdb";
$username_YBDB = "admin";
$password_YBDB = "yblcatx";
$YBDB = mysql_pconnect($hostname_YBDB, $username_YBDB, $password_YBDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Loading…
Cancel
Save