creates a new MySQL user called
vsearch, uses “vsearchpasswd”
- 7. Using a Database: Putting Python’s DB-API to Use
- from Head First Python, 2nd Edition
- Publisher: O'Reilly Media, Inc.
- Released: November 2016
that syntax has been depreciated in newer versions of MySQL. now use create then grant CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON database.* TO 'username'@'localhost';
Share this highlighthttp://learning.oreilly.com/a/head-first-python/19365656/