473,511 Members | 14,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parameters in MySQL

Ike
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
where username like 'nancianne'' at line 1"

Is there some kind of setting that I need to adjust on my new server (4.1.9
max) ? Can someone please point me on how to get this simple query to run
again? Thanks, my new server variables are given below. -Ike

back log 50 50
basedir C:\InstantRails\mysql\ C:\InstantRails\mysql\
bdb cache size 8388600 8388600
bdb home C:\InstantRails\mysql\data\ C:\InstantRails\mysql\data\
bdb log buffer size 32768 32768
bdb logdir
bdb max lock 10000 10000
bdb shared data OFF OFF
bdb tmpdir C:\DOCUME~1\HP_ADM~1\LOCALS~1\Temp\
C:\DOCUME~1\HP_ADM~1\LOCALS~1\Temp\
binlog cache size 32768 32768
bulk insert buffer size 8388608 8388608
character set client utf8 latin1
character set connection utf8 latin1
character set database latin1 latin1
character set results utf8 latin1
character set server latin1 latin1
character set system utf8 utf8
character sets dir C:\InstantRails\mysql\share\charsets/
C:\InstantRails\mysql\share\charsets/
collation connection utf8_general_ci latin1_swedish_ci
collation database latin1_swedish_ci latin1_swedish_ci
collation server latin1_swedish_ci latin1_swedish_ci
concurrent insert ON ON
connect timeout 5 5
datadir C:\InstantRails\mysql\data\ C:\InstantRails\mysql\data\
date format %Y-%m-%d %Y-%m-%d
datetime format %Y-%m-%d %H:%i:%s %Y-%m-%d %H:%i:%s
default week format 0 0
delay key write ON ON
delayed insert limit 100 100
delayed insert timeout 300 300
delayed queue size 1000 1000
expire logs days 0 0
flush OFF OFF
flush time 1800 1800
ft boolean syntax + -><()~*:""&| + -><()~*:""&|
ft max word len 84 84
ft min word len 4 4
ft query expansion limit 20 20
ft stopword file (built-in) (built-in)
group concat max len 1024 1024
have archive NO NO
have bdb YES YES
have compress YES YES
have crypt NO NO
have csv NO NO
have example engine NO NO
have geometry YES YES
have innodb YES YES
have isam NO NO
have ndbcluster NO NO
have openssl NO NO
have query cache YES YES
have raid NO NO
have rtree keys YES YES
have symlink YES YES
init connect
init file
init slave
innodb additional mem pool size 1048576 1048576
innodb autoextend increment 8 8
innodb buffer pool awe mem mb 0 0
innodb buffer pool size 8388608 8388608
innodb data file path ibdata1:10M:autoextend ibdata1:10M:autoextend
innodb data home dir
innodb fast shutdown ON ON
innodb file io threads 4 4
innodb file per table OFF OFF
innodb flush log at trx commit 1 1
innodb flush method
innodb force recovery 0 0
innodb lock wait timeout 50 50
innodb locks unsafe for binlog OFF OFF
innodb log arch dir
innodb log archive OFF OFF
innodb log buffer size 1048576 1048576
innodb log file size 5242880 5242880
innodb log files in group 2 2
innodb log group home dir .\ .\
innodb max dirty pages pct 90 90
innodb max purge lag 0 0
innodb mirrored log groups 1 1
innodb open files 300 300
innodb table locks ON ON
innodb thread concurrency 8 8
interactive timeout 28800 28800
join buffer size 131072 131072
key buffer size 8388600 8388600
key cache age threshold 300 300
key cache block size 1024 1024
key cache division limit 100 100
language C:\InstantRails\mysql\share\english\
C:\InstantRails\mysql\share\english\
large files support ON ON
license GPL GPL
local infile ON ON
log OFF OFF
log bin OFF OFF
log error .\GGRIP1.err .\GGRIP1.err
log slave updates OFF OFF
log slow queries OFF OFF
log update OFF OFF
log warnings 1 1
long query time 10 10
low priority updates OFF OFF
lower case file system OFF OFF
lower case table names 1 1
max allowed packet 1048576 1048576
max binlog cache size 4294967295 4294967295
max binlog size 1073741824 1073741824
max connect errors 10 10
max connections 100 100
max delayed threads 20 20
max error count 64 64
max heap table size 16777216 16777216
max insert delayed threads 20 20
max join size 4294967295 4294967295
max length for sort data 1024 1024
max relay log size 0 0
max seeks for key 4294967295 4294967295
max sort length 1024 1024
max tmp tables 32 32
max user connections 0 0
max write lock count 4294967295 4294967295
myisam data pointer size 4 4
myisam max extra sort file size 2147483648 2147483648
myisam max sort file size 2147483647 2147483647
myisam recover options OFF OFF
myisam repair threads 1 1
myisam sort buffer size 8388608 8388608
net buffer length 16384 16384
net read timeout 30 30
net retry count 10 10
net write timeout 60 60
new OFF OFF
old passwords ON ON
open files limit 510 510
pid file C:\InstantRails\mysql\data\GGRIP1.pid
C:\InstantRails\mysql\data\GGRIP1.pid
port 3306 3306
preload buffer size 32768 32768
protocol version 10 10
query alloc block size 8192 8192
query cache limit 1048576 1048576
query cache min res unit 4096 4096
query cache size 0 0
query cache type ON ON
query cache wlock invalidate OFF OFF
query prealloc size 8192 8192
range alloc block size 2048 2048
read buffer size 131072 131072
read only OFF OFF
read rnd buffer size 262144 262144
relay log purge ON ON
rpl recovery rank 0 0
secure auth OFF OFF
shared memory OFF OFF
shared memory base name MYSQL MYSQL
server id 0 0
skip external locking ON ON
skip networking OFF OFF
skip show database OFF OFF
slave net timeout 3600 3600
slow launch time 2 2
sort buffer size 2097144 2097144
sql mode
storage engine MyISAM MyISAM
sync binlog 0 0
sync frm ON ON
system time zone Eastern Standard Time Eastern Standard Time
table cache 64 64
table type MyISAM MyISAM
thread cache size 0 0
thread stack 196608 196608
time format %H:%i:%s %H:%i:%s
time zone SYSTEM SYSTEM
tmp table size 33554432 33554432
tmpdir
transaction alloc block size 8192 8192
transaction prealloc size 4096 4096
tx isolation REPEATABLE-READ REPEATABLE-READ
version 4.1.9-max 4.1.9-max
version bdb Sleepycat Software: Berkeley DB 4.1.24: (January 11, 2005)
Sleepycat Software: Berkeley DB 4.1.24: (January 11, 2005)
version comment Source distribution Source distribution
version compile machine i32 i32
version compile os Win95/Win98 Win95/Win98
wait timeout 28800 28800
Oct 25 '06 #1
1 15369
Ike

"Ike" <rx*@hotmail.comwrote in message
news:Zf******************@newsread4.news.pas.earth link.net...
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'

Im a dope, evidently. There should be no comma after lastname! -Ike
Oct 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1808
by: Gerry Abbott | last post by:
Hi all I'm converting a db from Acc97 to 2000. Everything works, except assigning of a qdf object containing parameters, to a recordset. The db, recordset, and qrydef objects are all referenced...
7
21590
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
0
3304
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems...
1
1333
by: Paul | last post by:
Can someone tell me why the following code does not work ? It does not crash or cause errors and it creates a new row in the table "tblusers" but the fields are NULL. Sub doInsert() 'Create...
1
8807
by: Mikey G | last post by:
Hi, I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a...
1
3500
by: evan.lavidor | last post by:
Hi all, Forgive me if this topic has been discussed before. I've been doing some searching and have yet to come across the answer I'm looking for. I'm new to PHP, and I'm trying to call a...
0
19251
by: IamtheEvster | last post by:
Hi All, I am currently using PHP 5 and MySQL 5, both on Fedora Core 5. I am unable to call a MySQL stored procedure that returns output parameters using mysql, mysqli, or PDO. I'm having a...
3
4439
by: Daniel | last post by:
Wondering if someone could help me with adding parameters to a mysql query with vb.net Here's my code: mycmd = New MySqlCommand 'mycmd.Parameters.Add("?result", MySqlType.Text)...
1
1701
by: totomalas | last post by:
I am trying to run the following code, where a query runs by taking some values from a form, then a recordset is intialized to count the records from the query result.... but each time i run, i...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
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...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5676
agi2029
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,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.