mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	added mysql/load-data.sh
This commit is contained in:
		| @ -15,7 +15,7 @@ drop table if exists comments; | ||||
| create table comments ( | ||||
|     id serial, | ||||
|     sender varchar(64) not null, | ||||
|     email varchar(64) not null, | ||||
|     email varchar(64), | ||||
|     url varchar(1024), | ||||
|     body text not null, | ||||
|     created timestamp(0) default now() not null, | ||||
|  | ||||
							
								
								
									
										12
									
								
								demo/Blog/misc/mysql/load-data.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								demo/Blog/misc/mysql/load-data.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,12 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| mysql -h localhost -p -u monty test < misc/mysql/init-db.sql | ||||
|  | ||||
| ../../util/import-model.pl --reset --user monty \ | ||||
|     --password some_pass --server localhost \ | ||||
|     --model posts Post.json | ||||
|  | ||||
| ../../util/import-model.pl --reset --user monty \ | ||||
|     --password some_pass --server localhost \ | ||||
|     --model comments Comment.json | ||||
|  | ||||
		Reference in New Issue
	
	Block a user