I don't see why mysql is telling me the following is a syntax error:
create table articles
{ file char(30) not null
};
What is wrong with that ?
red 5 1833
red wrote: I don't see why mysql is telling me the following is a syntax error:
create table articles { file char(30) not null };
What is wrong with that ?
red
Use parentheses (), not curlies {}
create table articles
( file char(30) not null
);
--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
red wrote: I don't see why mysql is telling me the following is a syntax error:
create table articles { file char(30) not null };
What is wrong with that ?
red
Wrong braces. Use (), not {}
Steve
If you want an easy way to maintain your MySQL databases then try using
phpMyAdmin from http://www.phpmyadmin.net/
--
Tony Marston http://www.tonymarston.net
"red" <gr*****@reenie .org> wrote in message
news:qS******** **************@ news.easynews.c om... I don't see why mysql is telling me the following is a syntax error:
create table articles { file char(30) not null };
What is wrong with that ?
red
Tony Marston wrote: If you want an easy way to maintain your MySQL databases then try using phpMyAdmin from http://www.phpmyadmin.net/
Thanks everyone for the advice about the parentheses. I was reading from
a book, and I guess my eyes were fooling me.
I use phpmyadmin on my online server, but on my windows xp box, here's
how far I got with phpmyadmin: http://www.zend.com/manual/faq.datab...ses.mysql.php5
"4. PHP 5 no longer bundles MySQL client libraries...
enable the extension php_mysql.dll inside php.ini"
I have the php_mysql.dll file in my php5 installation, and I know where
the php.ini file is. But I don't know what is meant by "enable the
extension" Can anyone please explain this ? Thanks.
red wrote: Tony Marston wrote:
If you want an easy way to maintain your MySQL databases then try using phpMyAdmin from http://www.phpmyadmin.net/
Thanks everyone for the advice about the parentheses. I was reading from a book, and I guess my eyes were fooling me.
I use phpmyadmin on my online server, but on my windows xp box, here's how far I got with phpmyadmin:
http://www.zend.com/manual/faq.datab...ses.mysql.php5
"4. PHP 5 no longer bundles MySQL client libraries... enable the extension php_mysql.dll inside php.ini"
I have the php_mysql.dll file in my php5 installation, and I know where the php.ini file is. But I don't know what is meant by "enable the extension" Can anyone please explain this ? Thanks.
I finally figured it out.
in the php.ini file, remove the semicolon in front of
;extension=php_ mysql.dll
It seems alot of people problems starting mysql in php5. I'll include my
experience in case it helps, although most people aren't as lost as I
am. Originally, I didn't figure this out because I was looking at the
php.ini in windows, which didn't have this line. Turns out my php.ini is
for php5 is in c:\php.
Also, I found http://www.faqts.com/knowledge_base/...html/aid/23162
helpful. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fatt Shin |
last post by:
Hi,
I'm running MySQL 4.0.13, connecting from PowerBuilder 9 using ODCB
Connector 3.51.
I'm facing a problem where whenever I issue a SELECT COUNT(*) statement
from PowerBuilder, I always get SQL syntax error back from MySQL. (Refer
to ODBC Trace I captured below).
metrohouse af8-b94 ENTER SQLExecDirect
HSTMT 014D2360
UCHAR * 0x020A0EA2 "select count ( *) from code
|
by: Mario Ohnewald |
last post by:
Hello!
I want to import a MySQL 3.x Databse to my new shiny MySQL4.x.
I did a backup with
/usr/local/mysql-standard-4.0.14-pc-linux-i686/bin/mysqldump -u root -p --opt -A > mysql_lamp_backup.`date '+%Y.%m.%d'`.sql
And i tried to import it to MySQL4.x with:
/usr/local/mysql/bin/mysql -u root -p < mysqlbak
The error:
ERROR 1064 at line 598: You have an error in your SQL syntax. Check the
|
by: google account |
last post by:
*sigh*
I have done all that I know how....
I am using fedora core1, I believe. I have updated the MySQL version
to 4.0.17-0.
I am trying this:
rpm -i MySQL-python2.1-0.9.2-1.i386.rpm
|
by: Adam Smith |
last post by:
I have a dedicated server running 'FreeBSD 4.9 STABLE' at a hosting
site. They have done some default installations, presumably from the CVS
ports package ??. Herein lies the problem, "I do not know" what they
have done!
At first it was apparent that MySQL was installed
mysql_install_db ; GRANT TABLES etc. ???
so I ran "mysql_install_db --force"
|
by: wideangle |
last post by:
Hello there!
I know it's stupid, but when creating a table in a mysql (win32)
database, it won't let me create this "mytable". Here goes my
ER_PARSE_ERROR.
mysql> CREATE TABLE `mytable` (
-> `mytable_id` int(25) NOT NULL auto_increment,
-> `mytable_title` varchar(100) NOT NULL default '',
-> `mytable_dts` varchar(25) NOT NULL default '',
| |
by: speralta |
last post by:
My tired old eyes may be failing me, but the following insert
statements look correct to me, but I can't seem to get a clean insert
from a fairly large text file database into mysql. I was wondering if
maybe I'm hitting a limit on character length per line on some insert
statements that I'm trying.
Here's the error messages:
execute failed: You have an error in your SQL syntax. Check the manual
that corresponds to your MySQL server...
|
by: Ike |
last post by:
Recently, I began using a different MySQL verver (i.e. different machine as
well as different version#, going from 4.12a to 4.1.9 max).
The following query used to work:
select firstname, lastname, from associates where username like 'nancianne'
but now fails with:
"You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'from associates
|
by: ajos |
last post by:
hi evrybdy,
the problem is:-
i had this running before in jsp but when i changed the jsp page using struts tags there occoured a problem...
when i enter values in the 2 text boxes and click enter an exception occours which is-
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
|
by: alex |
last post by:
I've converted a latin1 database I have to utf8. The process has been:
# mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore
--skip-set-charset mydb mydb.sql
# iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql
mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
|
by: gsaray101 |
last post by:
I am trying to set up one server with multiple mysql dbs. This script will get the mysqldump files from the ftp server and based on the name of the server in the file, it will create the corresponding db on the server.
this is the code
<?php
#ftp the most recent file to the ftp server
$dir1="/patrol_media/patadmin/sqlbak";
$dir2="d:\\cacti\\backup";
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |