首先改一下php的配置文件:
这里主要该两个地方:
Cirl + F 查找到mysql.dll
然后去掉前面的";"
然后是修改路径:
Cirl + F 查找到extension_dir
然后改掉后面的路径,因人而异,最后的路径修改为php的安装路径/ext
如:博主的php安装路径为:F:\wwwsever\php-5.3.4
则:
关于Navicat for MySQL软件的注册码问题,博主这里提供一个注册机,是博主的百度云地址:
http://pan.baidu.com/s/1i5NJyHv
大家可以从这里下载好注册机后按照使用说明进行安装。
一般安装完成后点击帮助->关于... 若你的注册码下面没有未激活三字,表明你已经获得了永久使用权。
接下来是代码导入:
老师给的文件是sql 类型,故不能直接导入(此话作废),这里使用Navicat for MySQL软件 :
具体方法为:
工具-》命令列界面
这时会出现一个类似于命令行的界面
在这个界面中创建数据库:
create database 数据库名
GO
use 数据库名
GO
方法1、右击左侧创建好的数据库名字,然后点击“运行SQL文件”
方法2、复制老师的代码
Enter
刷新左面会看到新生成的表
关于上节课作业的具体代码在另一篇博文中。,此处省略。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version
Useful JavaScript development tools