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
Copy file name to clipboardExpand all lines: help_docs/mysql_installation.md
+49-17Lines changed: 49 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,39 @@
3
3
## MySQL Installation Instructions
4
4
5
5
6
-
####[MySQL](http://www.mysql.com/) (OPTIONAL)
6
+
### [MySQL](http://www.mysql.com/) (OPTIONAL)
7
7
8
-
(NOTE: If you're using this test framework from a local development machine and don't plan on writing to a MySQL DB from your local test runs, you can skip this step.)
8
+
(NOTE: If you don't plan on using the SeleniumBase MySQL DB feature, then you can skip this section.)
9
+
10
+
--------
11
+
12
+
### GitHub Actions Ubuntu Linux MySQL Setup:
13
+
14
+
```bash
15
+
sudo /etc/init.d/mysql start
16
+
mysql -e 'CREATE DATABASE IF NOT EXISTS test_db;' -uroot -proot
Continue with additional steps below to setup your DB.
67
+
(Continue with additional steps below to set up your DB.)
68
+
69
+
### Windows MySQL Setup:
37
70
38
-
##### Windows:
39
71
[Download MySQL here](http://dev.mysql.com/downloads/windows/)
40
72
Follow the steps from the MySQL Downloads page.
41
73
42
-
Continue with additional steps below to setup your DB.
74
+
(Continue with additional steps below to set up your DB.)
43
75
44
-
####Access your MySQL DB
76
+
### Access your MySQL DB:
45
77
46
78
If you want a visual tool to help make your MySQL life easier, [try MySQL Workbench](http://dev.mysql.com/downloads/workbench/).
47
79
48
-
#### Prepare your MySQL DB
80
+
### Prepare your MySQL DB:
81
+
82
+
Use the [create_db_tables.sql](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/create_db_tables.sql) file to create the necessary tables for storing test data.
49
83
50
-
You can use the [create_db_tables.sql](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/create_db_tables.sql) file to create the necessary tables for storing test data.
84
+
### Configure your MySQL DB for SeleniumBase:
51
85
52
-
#### Configure your MySQL DB for SeleniumBase
86
+
Update your [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) file with your MySQL DB credentials so that tests can write to the database when they run.
53
87
54
-
You'll want to update your [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) file with your MySQL DB credentials so that tests can write to the database when they run.
88
+
### Have SeleniumBasetests write to your MySQL DB:
55
89
56
-
#### Allow tests to write to your MySQL database
90
+
Add the ``--with-db_reporting`` argument on the command line when you want tests to write to your MySQL database. Example:
57
91
58
-
Add the ``--with-db_reporting`` argument on the command line when you want tests to write to your MySQL database.
0 commit comments