MySQL导入示例数据库
MySQL导入示例数据库
在本教程中,将学习如何在MySQL命令行下将MySQL示例数据库导入到MySQL数据库服务器中。 在本教程之后,您将yiibaidb
示例数据库导入到MySQL服务器中以实践和学习MySQL。
第一步: 从MySQL示例数据库文章中下载示例数据库(yiibaidb
),有关示例数据库的结构,请参考: http://www.yiibai.com/mysql/sample-database.html
第二步: 将下载的文件解压缩到临时文件夹中。为了简单起见,我们将把它解压缩到D:\worksp,如下所示 –
第三步: 连接到MySQL服务器并创建数据库
D:\software\mysql-5.7.18-winx64\bin>mysql -hlocalhost -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 5.7.9 MySQL Community Server (GPL)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
创建数据库 –
mysql> CREATE DATABASE IF NOT EXISTS yiibaidb DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
mysql> use yiibaidb;
导入数据 –
mysql> use yiibaidb;
mysql> source D:/worksp/yiibaidb.sql;
第四步: 测试导入结果
mysql> select city,phone,country from `offices`;
+---------------+------------------+-----------+
| city | phone | country |
+---------------+------------------+-----------+
| San Francisco | +1 650 219 4782 | USA |
| Boston | +1 215 837 0825 | USA |
| NYC | +1 212 555 3000 | USA |
| Paris | +33 14 723 4404 | France |
| Beijing | +86 33 224 5000 | China |
| Sydney | +61 2 9264 2451 | Australia |
| London | +44 20 7877 2041 | UK |
+---------------+------------------+-----------+
7 rows in set (0.00 sec)
在本教程中,我们演示了如何使用MySQL命令行将MySQL示例数据库导入到MySQL数据库服务器中。
移动端:请扫描本页面底部(右侧)二维码并关注微信公众号,回复:”教程” 选择相关教程阅读
order furosemide 100mg generic buy doxycycline 200mg online cheap order albuterol
escitalopram 20mg without prescription purchase naltrexone without prescription order naltrexone 50 mg without prescription
strattera canada buy zoloft online cheap purchase sertraline generic
purchase urso for sale buy ursodiol 300mg pills order zyrtec pill
azithromycin buy online azithromycin 500mg usa buy neurontin sale
ppi stronger than prilosec over the counter medication list medications that cause excessive flatulence
order prednisone 10mg without prescription buy prednisone generic brand amoxil 500mg
birth control prescription renew online 10 best male enhancement pills best prescription for premature ejaculation
brand phenergan stromectol for sale ivermectin 6 mg over the counter
erosions in the duodenal bulb peptic ulcer diagnosis and treatment gram positive bacteria causing uti
order generic cymbalta 40mg glucotrol 10mg cheap order modafinil
prescription strength antifungal cream 5 most common hypertensive medications how does sodium affect blood pressure
periactin 4 mg pills cost luvox brand nizoral 200mg
valacyclovir how long to take prediabetes drugs list diabetes diet pills that work
medroxyprogesterone price praziquantel uk order microzide
best brand for quit smoking best prescription arthritis pain reliever can you buy painkillers online
oral letrozole order albendazole 400 mg for sale abilify 30mg without prescription
uksleepingpillsonline.com buying sleeping tablets on internet fda approved weight loss pills
buy minocin pills order requip 2mg without prescription buy ropinirole generic
buy uroxatral paypal does benadryl make you sweat prescription meds for stomach cramps
brand catapres 0.1 mg tiotropium bromide pill spiriva over the counter
dermatologist acne treatment pills trileptal 300mg sale trileptal pills
buy amoxicillin 500mg generic trimox 250mg without prescription order clarithromycin 500mg pills
calcitriol 0.25 mg without prescription order calcitriol 0.25mg buy fenofibrate 200mg pill
buy an assignment essay on the help cefixime 100mg brand
buy custom research papers casino games real money casino games online real money
aspirin cost purchase aspirin without prescription best online gambling sites
order lamisil 250mg online cheap list online gambling real money online poker
order trazodone generic buy suhagra online cheap buy clindac a without prescription
order tadalafil 20mg online cheap order voltaren 100mg for sale indocin 50mg generic
order ceftin 500mg for sale buy careprost without prescription methocarbamol 500mg generic
nolvadex uk where can i buy betahistine rhinocort nasal spray
retin cream oral buy retin cream online cheap buy generic avanafil over the counter
lamictal buy online buy generic lamotrigine vermox us
flagyl 400mg cheap order flagyl 200mg sale buy keflex generic
aurogra 50mg without prescription order estradiol 2mg online cheap estradiol 2mg cost
diflucan online order generic acillin cipro 500mg sale
do my term paper academia writing online essay writing
order aldactone 25mg sale order proscar 5mg without prescription order proscar without prescription
buy domperidone pills buy generic tetracycline over the counter tetracycline 250mg ca
order tamsulosin generic ondansetron 4mg brand order zocor
buy generic buspar for sale buy cheap generic ezetimibe generic amiodarone 200mg
order zantac 300mg online celecoxib pill order celebrex 100mg generic
allopurinol 100mg drug how to get temovate without a prescription crestor 10mg brand
order imitrex 50mg sale sumatriptan over the counter avodart 0.5mg over the counter
buy nexium medication buy mirtazapine 15mg for sale order topiramate 100mg without prescription
astelin 10 ml nasal spray azelastine buy online irbesartan over the counter
order pepcid without prescription losartan 50mg price buy tacrolimus tablets
buy orlistat 60mg online order asacol sale buy diltiazem
coumadin sale buy coumadin no prescription buy metoclopramide 20mg generic
glimepiride 1mg us misoprostol 200mcg usa arcoxia pill
order generic nortriptyline cheap methotrexate 5mg cost acetaminophen 500 mg
buy inderal generic clopidogrel usa order plavix 75mg generic
generic alendronate 35mg buy colchicine pills generic nitrofurantoin 100 mg
buy baclofen pill buy generic toradol toradol 10mg usa
brand claritin 10mg how to buy tritace dapoxetine 90mg price
baclofen 25mg us oral endep 50mg toradol cost
buy perindopril 4mg for sale buy clarinex 5mg pills allegra 120mg cost
buy generic dilantin buy flexeril generic where can i buy ditropan
order levitra generic order lanoxin 250mg pill purchase tizanidine generic
buy medrol 4 mg online order aristocort 4mg online cheap triamcinolone brand
oral clomiphene brand imdur 40mg buy imuran generic
amantadine 100mg us buy amantadine 100 mg generic buy avlosulfon paypal
free slot buy levothroid generic cheap levoxyl generic
casino slots online casinos for real money ivermectin purchase
where can i buy pantoprazole protonix generic order pyridium 200mg online cheap
cash poker online doxycycline usa order albuterol 4mg
roulette online with real money play casino slots buy lasix generic
atorvastatin over the counter lipitor 40mg ca amlodipine 5mg for sale
buy azithromycin online cheap buy generic gabapentin over the counter gabapentin price
isotretinoin 40mg sale zithromax where to buy purchase azithromycin pills
cefdinir 300mg canada order metformin 500mg without prescription order prevacid 30mg generic
modafinil ca buy modafinil 200mg deltasone 40mg canada
order cenforce 100mg for sale oral cenforce 50mg buy chloroquine online cheap
cheap telmisartan 20mg order generic molnunat movfor price
buy cialis 40mg purchase viagra generic viagra overnight shipping usa
omeprazole cost buy generic prilosec over the counter metoprolol 100mg ca
premarin 600 mg for sale viagra 100mg ca viagra 50mg over the counter
brand latanoprost purchase latanoprost sale rivastigmine uk
vasotec 5mg brand buy vasotec for sale how to buy lactulose
ferrous tablet ascorbic acid 500 mg price betapace 40mg price
mestinon 60 mg pills order maxalt 5mg online order maxalt 5mg generic
buy prasugrel generic prasugrel 10 mg ca tolterodine without prescription
etodolac 600 mg cheap colospa 135mg drug cilostazol 100mg us
buy fludrocortisone paypal buy loperamide without a prescription buy imodium cheap
dydrogesterone 10 mg price brand dapagliflozin 10 mg purchase jardiance for sale
order dipyridamole pills purchase felodipine generic order generic pravachol 20mg
melatonin 3 mg cheap buy generic cerazette order danazol generic
aspirin usa hydroquinone for sale order imiquad sale
order acarbose 25mg online precose 50mg usa buy griseofulvin 250 mg pills
minoxytop over the counter buy minoxidil sale erection pills online
ketotifen 1mg tablet ketotifen 1 mg price imipramine 75mg drug
tricor pills buy fenofibrate 160mg pill tricor 200mg sale