Skip to content

Commit 117afd2

Browse files
authored
Include setup.sql instruction
1 parent 6db4657 commit 117afd2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ This package is designed to store PHP sessions in a MySQL database so that you c
1212

1313
### Installing on your server
1414

15-
Step 1
15+
Create a session table in your MySQL database by running [install/setup.sql](install/setup.sql)
1616

1717
```
18-
Example
18+
CREATE TABLE `likel_sessions` (
19+
`id` char(128) NOT NULL DEFAULT '',
20+
`set_time` char(10) NOT NULL,
21+
`data` text NOT NULL,
22+
`session_key` char(128) NOT NULL,
23+
`iv` varchar(16) NOT NULL,
24+
PRIMARY KEY (`id`)
25+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1926
```
2027

2128
Step 2

0 commit comments

Comments
 (0)