|
1 | 1 | # Installation
|
2 | 2 |
|
3 | 3 | SQLFlow is currently under active development. For those who are interested in trying
|
4 |
| -it out, we have provided the instructions and demo. Play around with it. Any bug report and |
5 |
| -issue is welcome. :) |
| 4 | +it out, we have provided the instructions and demo. Play around with it. Any bug report and issue is welcome. :) |
6 | 5 |
|
7 | 6 |
|
8 | 7 | ## Preparation
|
@@ -37,22 +36,16 @@ issue is welcome. :)
|
37 | 36 | If you have your own database setup, below steps enables running a seperated container
|
38 | 37 | that runs SQLFlow server and Jupyter Notebook, which connects to your own database.
|
39 | 38 |
|
40 |
| -1. Follow steps in |
41 |
| -[example/datasets](https://github.com/sql-machine-learning/sqlflow/blob/develop/example/datasets) |
42 |
| -to import sample data. |
| 39 | +1. Follow steps in [example/datasets](https://github.com/sql-machine-learning/sqlflow/blob/develop/example/datasets) to import sample data. |
43 | 40 |
|
44 |
| -1. After data is popularized in MySQL, let's test the installation from running a query in Jupyter |
45 |
| - Notebook. If you are using Docker for Linux, please change `host.docker.internal:3306` to |
46 |
| - `localhost:3306`. If you are connecting to a remote database, please make sure to change |
47 |
| - `host.docker.internal:3306` to the remote address. |
| 41 | +1. After data is popularized in MySQL, let's test the installation by running a query in Jupyter Notebook. If you are using Docker for Linux, please change `host.docker.internal:3306` to `localhost:3306`. If you are connecting to a remote database, please make sure to change `host.docker.internal:3306` to the remote address. |
48 | 42 |
|
49 | 43 | ```
|
50 | 44 | docker run -it -p 8888:8888 sqlflow/sqlflow:latest \
|
51 | 45 | bash -c "sqlflowserver --datasource='mysql://root:root@tcp(host.docker.internal:3306)/?maxAllowedPacket=0' &
|
52 | 46 | SQLFLOW_SERVER=localhost:50051 jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root"
|
53 | 47 | ```
|
54 | 48 |
|
55 |
| - If you are using Docker for Mac, please be aware the option `--database` where `host.docker.internal` translates to the host IP address as recommended [here](https://docs.docker.com/docker-for-mac/networking/). |
| 49 | +If you are using Docker for Mac, please be aware the option `--database` where `host.docker.internal` translates to the host IP address as recommended [here](https://docs.docker.com/docker-for-mac/networking/). |
56 | 50 |
|
57 |
| - If you are running MySQL on remote, please be aware that MySQL only allows connections from localhost |
58 |
| - by default. Fix can be found [here](https://stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql). |
| 51 | +If you are running MySQL on remote, please be aware that MySQL only allows connections from localhost by default. Fix can be found [here](https://stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql). |
0 commit comments