mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-10-26 15:42:15 +00:00
### Summary We no longer use the "bricks" terminology for partioning functions, etc in the library. This PR updates various references to bricks within the repo and the docs. This is just an initial pass to swap the terminology out, it'll likely be helpful to reorganize the docs a bit as well. --------- Co-authored-by: qued <64741807+qued@users.noreply.github.com> Co-authored-by: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com>
Loading unstructured outputs into MySQL
The following example shows how to load unstructured output into MySQL.
This allows you to run queries based on metadata that the unstructured
library has extracted.
Follow the instructions here
to install MySQL on your system. If you're using homebrew on Mac, you can
install MySQL with brew install mysql.
Once you have installed MySQL, you can connect to MySQL with the command mysql -u root.
You can create a non-root user and an unstructured_example database using the following
commands:
CREATE USER '<username>'@'localhost' IDENTIFIED BY '<password>';
CREATE DATABASE unstructured_example;
GRANT ALL PRIVILEGES ON unstructured_example.* TO '<username>'@'localhost';
Running the example
- Run
pip install -r requirements.txtto install the Python dependencies. - Run `jupyter-notebook to start.
- Run the
load-into-mysql.ipynbnotebook.