Follow your heart (153)--重新跑程序

cmd-mysql -uroot -p
这个是让你用root用户登录
M  8:01:23 PM
数据库建好了?
龙  8:01:35 PM
我不知道
M 8:01:38 PM
你怎么建的?
别人帮你建的?

龙  8:02:13 PM

我给你看看步骤哈
M 8:02:25 PM

龙 8:03:06 PM
击开始--程序-mysql-mysql5.0- mysql command line  client. 然后出现密码.我也不知道是不是昨天晚上我下载时的那密码,我反正告诉天凉了.

然后输入:create database tms default charset utf8;
set names utf8;
use tms ;
source c:\db.sql*
commit;
show databases;

中间,还是之前,还要我cmd-mysql -uroot -p 了一下的.忘记是咋回事情了.


然后,说这样就好像把那个数据库怎么弄进去了.


对不对啊?
M 8:04:03 PM
你用navicat看看就知道了
龙 8:04:09 PM

M 8:04:23 PM
看看数据库里有没有tms这个库 库里有没有一堆表
龙  8:05:01 PM
怎么检查?
M  8:05:01 PM
cmd-mysql -uroot -p
这个是让你用root用户登录
龙 8:05:14 PM

我点哪个
M 8:05:48 PM
你这个能连接你的mysql吧?
这个你知道吗
龙 8:06:13 PM
嗯,知道
怎么连接忘记了
M  8:06:25 PM
双击左边那个 随便取的别名
看能打开么
龙 8:06:52 PM
哦,那打开的是之前的中山大学的
M  8:07:11 PM
等下.. 你前天安装mysql之前, 这个就能打开了?
龙 8:07:18 PM


这个是之前就有的
我以前装过的
好像
M  8:07:42 PM
双击那个tms
龙  8:09:04 PM
这个好像是哦
M 8:09:05 PM
你点一下那个函数
M8:09:05 PM
你点一下那个函数

龙  8:09:37 PM
没反应

M  8:10:11 PM
函数没导进去
龙  8:10:19 PM

那咋办
你教我把数据库重新弄一次?
M  8:11:30 PM
不用
龙 8:11:36 PM

M 8:11:33 PM
BEGIN
insert into users (email_address, password) values (email, password);
insert into user_profiles (user_id, homecity) values (last_insert_id(), homecity);
END
把这个复制

猜你喜欢

转载自jennycn.iteye.com/blog/1264837