Use MySQL with Python by m. MOka
Author:m. MOka [MOka, m.]
Language: eng
Format: azw3, epub
Published: 2016-03-22T16:00:00+00:00
Creating databases
Creating a database in MySQL is as simple as declaring the name of the database that you want to create. The syntax reads: CREATE DATABASE <database name>;
An example of this is:
CREATE DATABASE csv;
As with all SQL statements, blank space is the token by which the command is divided. We first need to tell MySQL that we want to create something by using that keyword. Then we need to tell it what we want to create, a database. Finally, we give it the name of the database followed by the requisite semi-colon (when in MySQL itself).
Note that, in order to create databases in MySQL, the account you use must have the CREATE privilege on the database. CREATE statements are also sensitive to user privileges. If a user is only granted CREATE privileges on a single database (for example, csv.*), then that user cannot create databases, but can create tables on that specific database.
Unlike some commands in MySQL, database creation is case-sensitive. So the following CREATE statements each create a different database: CREATE DATABASE csv;
CREATE DATABASE Csv;
CREATE DATABASE CSV;
CREATE DATABASE C_S_V;;
Whether the CREATE DATABASE statement is case-sensitive ultimately depends on the filesystem and configuration of your server. Unix-based systems are usually case-sensitive by default. However, Windows and Mac servers may not be.
While Mac OS X is derived from Unix, it uses the HFS+ filesystem. So database names are not case-sensitive by default. To add the case sensitivity feature for Mac OS X, one would need to use the UFS filesystem.
To configure MySQL for case-sensitivity when it is not the default, you need to set the variable lower_case_table_names. More information on that variable can be found at:
http://dev.mysql.com/doc/refman/5.5/en/server-systemvariables.html#sysvar_lower_case_table_names
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Personalized inhaled bacteriophage therapy for treatment of multidrug-resistant Pseudomonas aeruginosa in cystic fibrosis by unknow(203365)
CONSORT 2025 statement: updated guideline for reporting randomized trials by unknow(102437)
Critical evaluation of the ProfiLER-02 study design and outcomes by Vivek Subbiah & Razelle Kurzrock(101969)
Cardiac gene therapy makes a comeback by Oliver J. Müller & Susanne Hille & Anca Kliesow Remes(101767)
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(74564)
Unveiling the design rules for tunable emission in graphene quantum dots: A high-throughput TDDFT and machine learning perspective by Şener Özönder & Mustafa Coşkun Özdemir & Caner Ünlü(50975)
A yeast-based oral therapeutic delivers immune checkpoint inhibitors to reduce intestinal tumor burden by unknow(40351)
Covalent hitchhikers guide proteins to the nucleus by Alexander F. Russell & Madeline F. Currie & Champak Chatterjee(40272)
Meet the Authors: Christopher R. Mansfield and Emily R. Derbyshire by Christopher R. Mansfield & Emily R. Derbyshire(40175)
Alkaline-earth metals promote propane dehydrogenation with carbon dioxide through geometric effects: Altering the reaction pathway by unknow(32798)
Induced iron vacancies boosting FeOOH loaded on sustainable Fenton-like collagen fiber membrane for efficient removal of emerging contaminants by unknow(32591)
Efficient electric-field-assisted photochemical conversion of methane to n-propanol exclusively over penetrated TiO2Ti hollow fibers by Guanghui Feng(32511)
Bi2SiO5 nanosheets as piezo-photocatalyst for efficient degradation of 2,4-Dichlorophenol by Hangyu Shi & Yifu Li & Lishan Zhang & Guoguan Liu & Qian Zhang & Xuan Ru & Shan Zhong(32451)
A novel NDIPTA organic heterojunction photocatalyst with built-in electric field for efficient hydrogen production by Jiahui Yang & Baojun Ma & Yongfa Zhu(32426)
Enhanced conversion of methane to liquid-phase oxygenates via hollow ferrite nanotube@horseradish peroxidase based photoenzymatic catalysis by Jun Duan & Shiying Fan & Xinyong Li & Shaomin Liu(32389)
Ordered macroporous superstructure of defective carbon adorned with tiny cobalt sulfide for selective electrocatalytic hydrogenation of cinnamaldehyde by Xiao-Shi Yuan & Sheng-Hua Zhou & San-Mei Wang & Wenbo Wei & Xiaofang Li & Xin-Tao Wu & Qi-Long Zhu(32308)
What's Done in Darkness by Kayla Perrin(27225)
Topological analysis of non-conjugated ethylene oxide cored dendrimers decorated with tetraphenylethylene: Insights from degree-based descriptors using the polynomial approach by A Theertha Nair & D Antony Xavier & Annmaria Baby & S Akhila(26601)
Investigation of mechanical and self-healing properties of hydroxyl-terminated polybutadiene functionalized with 2-ureido-4-pyrimidinone by Mohsen Kazazi & Mehran Hayaty & Ali Mousaviazar(26524)