You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: examples/ch07/README.txt
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,17 @@ To run the serverside php + mysql example code in this chapter you need php5 and
4
4
Installing the software
5
5
-----------------------
6
6
7
-
On ubuntu linux you can install the required files like this as root:
7
+
ubuntu linux:
8
+
sudo apt-get install php5-mysqlnd php5-json
8
9
9
-
apt-get install php5-mysqlnd php5-json
10
+
centos linux:
11
+
sudo yum install httpd mysql-server php
10
12
11
-
On Mac osx you can use homebrew (further instructions at http://brew.sh )
13
+
Mac osx:
14
+
use homebrew (further instructions at http://brew.sh )
12
15
13
-
On windows you can use the installers available from php.net and mysql.com
16
+
Windows:
17
+
Use the installers available from php.net and mysql.com
14
18
15
19
16
20
Mysql database setup
@@ -20,6 +24,17 @@ The example file crud.php assumes that you have a database called "extjsinaction
20
24
21
25
You can find further instructions on user account management in section 6.3 in the mysql manual (available here: http://dev.mysql.com/doc/refman/5.6/en/user-account-management.html )
22
26
27
+
Here is an example to load data.sql and grant access to the user
28
+
"extjsinaction" from the mysql admin client:
29
+
30
+
\. data.sql
31
+
grant all on extjsinaction.* to extjsinaction@localhost identified by 'extjsinaction'
32
+
33
+
you could then tweak the top line in crud.php to :
34
+
mysql_connect("localhost", "extjsinaction", "extjsinaction") or die ("could not connect:" . mysql_error());
0 commit comments