Manage this page

1. Feedback

2. Display

External links

1. Devshed forums on MySQL Help

2. Reference manuals

The problem is the "my.ini" file which is in the windows directory may be corrupted. Or is there from a previous version.

Here are some notes borrowed from devshed link

1) Used my-small.cnf as a template, changing basedir and datadir to the proper paths, and UNCOMMENT them both.

2) Rename my-small.cnf to my.ini and put it in the WINDOWS folder (not in system32 or any subfolder, just directly in c:\windows).

3) Type NET START mysql from a dos prompt.

Make sure you stop the service and remove the service followed by removing the existing mysql. Remoce the windows\mysql.ini if it is there. Then uninstall it. Try installing the new one now.

If it fails creating a service, remove the service and add it again.

Use mysqld-nt --install command for installing it and mysqld-nt --remove for removing it

mysqld-nt --help
mysqld-nt --remove
mysqld-nt --install

The user I have specified at installation time does not seem to work. How do I do this?

I need step by step instructions in getting this done.

satya...the simplest way to load the data is to 1. go into mysql..thru control center or command line 2. run the sql file that i sent... you should have no problem...what i sent is a straight sql file.

In access this is done as now() and in oracel i believe today(). What would be an equivalent in mysql.

Example

insert into sometable
(col1)
values (now())

After an insert happens the auto increment column would have been incremented. Databases expose this newly created id on the current connection. What is the key word in sql to get this in mysql

Example

select last_insert_id()

The list seems to be

text
integer
double
varchar
decimal

What additional data types are there?

For example the following command will not work

update tablet set col1=10.95

This will put a value of 11 in that field. Looks like we may have to use a conversion function to accomplish this.

hostname (localhost)
port number (3306)
username (root)
password
schema (test)
create database databasname;
create table Address (
	addressId varchar(75) not null primary key,
	companyId varchar(75) not null,
	userId varchar(75) not null,
	userName varchar(75) null,
	createDate datetime null,
	modifiedDate datetime null,
	className varchar(75) null,
	classPK varchar(75) null,
	street1 varchar(75) null,
	street2 varchar(75) null,
	street3 varchar(75) null,
	city varchar(75) null,
	zip varchar(75) null,
	regionId varchar(75) null,
	countryId varchar(75) null,
	typeId varchar(75) null,
	mailing tinyint,
	primary_ tinyint
);

Here are some example scripts

docs on mysql main page

mysql command line documentation

How to use command line options