Created
April 1, 2016 20:00
-
-
Save 82rules/57d7f2dfdf666ae9b7c681d6038032e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull comocode/lamp:0.1.0 | |
run -i -t --name lamp -v /Users/rulian/Downloads/import_example:/data comocode/lamp:0.1.0 /bin/bash | |
docker@default:/Users/rulian/Downloads$ docker run -i -t --name lamp -v /Users/rulian/Downloads/import_example:/data comocode/lamp:0.1.0 /bin/bash | |
bash-4.1# service mysql start | |
# Starting MySQL. SUCCESS! | |
bash-4.1# mysql -u root -p | |
Enter password: | |
# Welcome to the MariaDB monitor. Commands end with ; or \g. | |
# Your MariaDB connection id is 3 | |
# Server version: 10.0.14-MariaDB MariaDB Server | |
# Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others. | |
# Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | |
MariaDB [(none)]> create database example; | |
# Query OK, 1 row affected (0.00 sec) | |
bash-4.1# cd /data/ | |
bash-4.1# mysql -u root -p example < example.sql | |
Enter password: | |
php user-import.php | |
PHP Notice: Undefined index: email in /data/user-import.php on line 82 | |
PHP Stack trace: | |
PHP 1. {main}() /data/user-import.php:0 | |
PHP 2. addOrUpdateUser() /data/user-import.php:69 | |
oh, no you didn't! this user has no email!array(4) { | |
'first_name' => | |
string(4) "Open" | |
'is_admin' => | |
int(1) | |
'geo_region_id' => | |
string(1) "2" | |
'user_type_id' => | |
s | |
MariaDB [(none)]> select count(*) from users; | |
70 records |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment