| 
| 
 | 
 | 
 | 
 | 
 | 
| 		
			
			 | 
		#1 | 
| 
			
			
			
			 Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button 
			
			
		
			
				
			
			
								
		
	 | 
	
	
	
		
		
			
			  Oh Cleo.... and anyone else....One of the threads we lost was the one discussing how to create a MySQL DB from the UNIX prompt.....  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#2 | 
| 
			
			
			
			 I'm not interested in the facts, I'm interested in my opinion. 
			
			
		
			
				
			
			
								
		
	 | 
	
	
	
		
		
		
		
		 This one worked for Moses: 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
	"I COMMAND THEE TO BE A MYSQL DATABASE AND THY MUST WORK PROPERLY AND BE TRUE"!.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#3 | 
| 
			
			
			
			 Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button 
			
			
		
			
				
			
			
								
		
	 | 
	
	
	
		
		
		
		
		 LOL but then the damn thing went and spawned a bunch of golden tables profaning the name of it's Root creator and was almost deleted!!! 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#4 | |
| 
			
			
			
			 I'm not interested in the facts, I'm interested in my opinion. 
			
			
		
			
				
			
			
								
		
	 | 
	
	
	
		
		
		
		
		 Quote: 
	
    "ABORT! ABORT!" | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#5 | |
| 
			
			
			
			 Subversive filth of the hedonistic decadent West 
			
			
		
			
				
			
			
			Join Date: Mar 2003 
				Location: Southeast Florida 
				
				
					Posts: 27,936
				 
				
				
				
				 | 
	
	
	
		
		
			
			 
				
				Re: Commands to Create a MySQL DB?
			 
			Quote: 
	
 man mysql That should point you in the right direction. ![]() Also I did a fast search on Google and found this http://perl.about.com/library/weekly/aa020601a.htm  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#6 | 
| 
			
			
			
			 Internet! Is that thing still around? 
			
			
		
			
			
			Join Date: Aug 2003 
				
				
				
					Posts: 2
				 
				
				
				
				 | 
	
	
	
		
		
		
		
		 doh, thought you said how to create a table, 
		
	
		
		
		
		
		
		
		
		
		
		
			to create a db just type 'CREATE DATABASE [dbname]' once you logged into mysql. to create a table: you have to login to mysql first: mysql -u [username] -p it'll ask your for your pass then, type: use [databasename]; then something of this sort to create the database: CREATE TABLE [table name] ( ID INT AUTO_INCREMENT, name VARCHAR(35) NOT NULL, name2 int, name3 date, name4 text, PRIMARY KEY (ID) ); where name,name2... are variables of your choice, and int,date,varchar,text are variable types. Last edited by nickk; 2003-08-31 at 05:35 PM..  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| 		
			
			 | 
		#7 | 
| 
			
			
			
			 No offence Apu, but when they were handing out religions you must have been out taking a whizz 
			
			
		
			
			
								
		
	 | 
	
	
	
		
		
		
		
		 Almost right there Nickk.  
		
	
		
		
		
		
		
		
			![]() first log into mySQL as Nickk said. But do not do the "use" command yet. type: create database <databasename> \g type: use <databasename> \g type: grant all on <databasename> for <youruser> \g Then you can add tables, etc. You may have to have root access in order to do the above, depending upon your account settings with your host. 
				__________________ 
		
		
		
		
		
		
	
	Please Re-Read The Rules For Sig Files  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
	
	
| Thread Tools | Search this Thread | 
| Display Modes | Rate This Thread | 
		
  | 
	
		
  |