1.链接数据库mysql
mysql -h localhost -u root -p
输入密码登录
2.建数据库 invo
mysql> CREATE DATABASE invo;
Query OK, 1 row affected (0.00 sec)
3.选中数据库
mysql> use invo;
Database changed
4.找到服务器sql文件并执行
mysql> source /var/www/html/invo/schemas/invo.sql;
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
。。。mysql> select * from users;
+----+----------+------------------------------------------+--------------+---------------------+---------------------+--------+
| id | username | password | name | email | created_at | active |
+----+----------+------------------------------------------+--------------+---------------------+---------------------+--------+
| 1 | demo | c0bd96dc7ea4ec56741a4e07f6ce98012814d853 | Phalcon Demo | demo@phalconphp.com | 2012-04-10 20:53:03 | Y |
+----+----------+------------------------------------------+--------------+---------------------+---------------------+--------+
1 row in set (0.00 sec)
5.打开浏览器,输入: http://192.168.30.101/invo 打开invo网页
然后 点击 中间 绿色的 try it for free 进行注册
输入测试信息
注册成功后登录。login
会看到
Your Invoices
Number | Customer | Date | Total | Status |
51001 | Friðrik Þór Friðriksson | 2014-04-02 | 12.50 | Success |
51002 | Keith Carradine | 2014-04-04 | 22.75 | Rejected |
51003 | Nico Engelbrecht | 2014-04-04 | 6.50 | Success |
51004 | Clinton Kayser | 2014-04-07 | 11.50 | Success |
© Company 2014
http://www.fastvv.com/docs/phalcon_cn/reference/tutorial-invo.html
目录:http://www.fastvv.com/docs/phalcon_cn/