mirror of
				https://github.com/Unstructured-IO/unstructured.git
				synced 2025-10-31 10:03:07 +00:00 
			
		
		
		
	 19beb24e03
			
		
	
	
		19beb24e03
		
			
		
	
	
	
	
		
			
			* added requirements for mysql * first bit of mysql notebook * update requirements file * wrap with mysql example * update readme with install instructions
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.