Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mysql Nt Service Stopped Starting After 2 Years


i have been running mysql on windows server 2003 for the last almost 2 years (its a really early version of mysql 4 anyway) but now all of a sudden mysql service stopped starting, i can go to services, press start and then refresh and its off again! i have a feeling that someone deleted the core mysql table (mysql) as it is now totally empty.

im not too good with my sql as i generally use mssql or whatever, infact mysql never really installed properly, the only user i could ever use was root but i didnt mind this so i just left it and it was fine for 2 years but now its just stopped all of a sudden and i cant get it back on.

i have enabled the mssql php exension as a backup system but i cant transfer any databases across without enabling mysql.. but it wont turn on! i tried several exes in e:mysqlin but none got it on (well one of them made the little winmysqladmin light go on for half a second)




View Complete Forum Thread with Replies

Related Forum Messages:
Get The Number Of Years Of Service As A Float
I have figured out this way to calculate the number of years that someone has worked at a company:
Quote:

SELECT DATE_FORMAT( NOW( ) , '%Y' ) - DATE_FORMAT( '2003-11-03', '%Y' ) - ( DATE_FORMAT( NOW( ) , '00-%m-%d' ) < DATE_FORMAT( '2003-11-03', '00-%m-%d' ) ) AS years_of_service

This query returns 4. This is technically correct but what I need is to calculate to the 1/2 years, so in this case I would like the result to return 4.7

The application I am coding needs to be able to discern between half years.

View Replies !
Error Starting Service [0]
I tried all the solutions stated in a forum here but it still wont work. I detected that my former mysql from xampp is still running and can't be paused,stopped or deleted. when i try to delete it it says object marked for deletion.

View Replies !
Service Isn't Starting. Unhandled Win32 Exception
So I have tried uninstalling, deleting the mysql folder, deleting registry entries and reinstalling about 4 times now. It worked the first time around. And even after doing all of this, somewhere it is still keeping my old password after reinstalling, and everytime i try and run mysqld or the service it gives me a Unhandled Win32 Exception.

I'm trying to figure out why it might be giving me this exception, as well as why my old password keeps being asked for when I try and resintall. I understand that somewhere its being logged but where I have no idea. I've deleted the registry entry under HKEY_LOCAL_MACHINE >> SYSTEM >> CurrentControlSet >> Services >> [MySql] <<<<< Thats the file I deleted under the registry after the uninstall.

I also deleted the C:Program FilesMySQL Folder completely. So where it's logging that information I have no idea. Any help on this matter would be great.

View Replies !
Cannot Start Mysqld Service..Timed Out Starting Mysqld Daemon
I have a problem starting mysqld service it says "timed out starting mysqld daemon" when i start the service..

here is what my log files contain:

This is what the mysql log file shows:

081021 17:14:21 mysqld ended

081021 17:16:06 mysqld started
081021 17:16:06 [Warning] Can't create test file /var/lib/mysql/station109.lower-test
081021 17:16:06 [ERROR] Can't start server : Bind on unix socket: Permission denied
081021 17:16:06 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
081021 17:16:06 [ERROR] Aborting

This is what my /var/log/messages file contain: ....

View Replies !
The MySQL Service Has Disappeared From Win XP Service List
I have been using MySQL for about 3 years now on Win XP Pro SP2 and had no real problems. Until today I went to start the service in windows service list (I start it manually) and it was gone!

The MySQL install (MySQL 5.0) is still visible in add/remove programs and all the files and directories are present.

View Replies !
Upgrading MySQL - Send Mail Stopped Working
I recently upgraded my Mac (running OS 10.4.8) to Apache 2.0.52, MySQL 5.0.24 and PHP 4.3.9.

While I seem to be accessing the latest MySQL from the Terminal, Apache seems to continue to use the previous install of MySQL.

Is there some config file I need to edit so the new install of MySQL is used by my Web server?

While I'm at it, my PHP seems to no longer be able to send email, though I added "sendmail_path = /usr/sbin/postfix" to the php.ini file.

View Replies !
Replication Stopped Without Reason
The replication start and work correctly but after 10 minutes slave
don't update anymore. I must do "slave stop - slave start" for
restarting replication. In the log there are not error.

The slave is connected to internet with a isdn-router while the master
is connected with a cdn. What can i do for stabilize the replication?

View Replies !
Stopped Working (Leopard 10.5.6)
the issue is that at some point between last Friday and yesterday, my server stopped working. I tried checking the mysql.sock, but its still there.

I can still connect through the Terminal by running the bin mysql, but navicat and java can't connect.

EDIT: PHP seems to be working and navicat starts working if i select "connect through mysql.sock", but java says "Host is down" which is not.



View Replies !
Replication Is Stopped On Slave
using replication on mysql-4.1(Master) to mysql-4.1(Slave). Suppose Master DB inserting queries in binary log file at master-bin.01 at position 100.

And on slave somehow replication is stopped.
mysql-slave> show slave statusG

Master_Host: master-ip-address
Master_Log_File: master-bin.01
Relay_Log_File: slave-relay.01
Slave_IO_Running: No
Slave_SQL_Running: No
Read_Master_Log_Pos: 100
Exec_Master__Log_Pos: 50

After fixing slave problem when i run following command

mysql> START SLAVE;

starts Slave IO_THREAD and Slave SQL_THREAD. Because slave io_thread started that's why new relay log file created slave-relay.02 and slave io_thread resumes to log queries after position 100 (Read_Master_Log_Pos: 100) to new relay file slave-relay.02 file like position 101,102 .... onwards.

View Replies !
Microsoft Jet Database Engine Stopped The Process
I only get this message when the tables are linked to mysql for an MS Access 2000 database.

"The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time. "

View Replies !
Getting The Age In Years
i want to get the age of a person in years with sql query in mysql. i have stored the date of birth in the database. I have tried Datediff function of mysql but it returns in Days not in Years.

I would like to use some thing like this one.

select * from tablename Where "datefunction that get me date in Years like this one Datediff(CURDATE(),date_of_birth) " between agefrom AND ageto.


View Replies !
Starting MYSQL...
--=_5D034890.F392DE43
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

This may be a very simple question and possibly could have a very simple
solution to it. Since I have been using mysql for less than 2 months, I
still consider myself a newbie.... I still cannot execute certain
commands from my dos prompt, but I can run queries easily using
phpmyadmin. I have purchased MYSQL Second Edition (Paul Dubois) so I
hope to put it to good use soon....

The question that is of concern to me this morning is the prefered way
to start mysql. I seem to think that I always have a problem because
when I start my PC, mysql is already running as a service. But I am
thinking that because I login to my PC as any user other than the dbase
username, I have a problem afterwards.

Must I always log on to my PC (Win2K) as the same user as the created
user in my DBase in order for mysql to run properly?

View Replies !
Mysql Not Starting
I had to reload mysql 4.0.17 on to a Fedora Core machine that was previously
working in the same configuration. Now though I can't get the server to run
with the either of the following commands:

../mysql.server start - the command line reappears with no error but no
running process in the system monitor
/usr/local/mysql/bin/mysqld_safe -user=mysql - this command does not return
to the command prompt so when I hit the enter key I get "Starting mysqld
daemon with databases from /var/lib/mysql 0404124 00:13:21 mysqld ended.

It looks to me as if it attempts to start but fails with no error. What am I
missing on the reinstall?

View Replies !
Starting MYSQL On A Mac
I feel quite stupid I cannot seem to get MYSQL to even run on my Mac (OS X 10.4)

I have installed MYSQL and then went to terminal and entered

cd /usr/local/mysql

then

sudo ./bin/mysqld_safe

then my password as prompted

which is followed by

Starting mysqld daemon with databases from /usr/local/mysql/data

- at this point as it just seems to stop

What next? I have tried entering mysql -u grifkerry -p but nothing happens! I have left it for a while but still nothing.

View Replies !
Starting Mysql 5.0.18
I type in the password and mysql closes. When I reinstall it as an anonymous user mysql asks me to type in my password. I've reinstalled the program a few times. I tried to reset the root password. None of these things work. I also saw that I have a file called prod.err. I open up the file and I see a bunch of stuff that I don't understand. I greatly appreciate anyone who could help me solve this problem. I've run out of ideas.

prod6.err:
InnoDB: The first specified data file .ibdata1 did not exist:
InnoDB: a new database to be created!
060215 16:31:56 InnoDB: Setting file .ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
060215 16:31:56 InnoDB: Log file .ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .ib_logfile0 size to 10 MB
InnoDB: Database physically writes the file full: wait...
060215 16:31:57 InnoDB: Log file .ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .ib_logfile1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
060215 16:31:57 InnoDB: Started; log sequence number 0 0
060215 16:31:58 [Note] C:Program FilesMySQLMySQL Server 5.0inmysqld-nt: ready for connections.
Version: '5.0.18-nt' socket: '' port: 3306 MySQL Community Edition (GPL)
060215 16:52:38 [Note] C:Program FilesMySQLMySQL Server 5.0inmysqld-nt: Normal shutdown

060215 16:52:39 InnoDB: Starting shutdown...
060215 16:52:40 InnoDB: Shutdown completed; log sequence number 0 43655
060215 16:52:40 [Note] C:Program FilesMySQLMySQL Server 5.0inmysqld-nt: Shutdown complete

View Replies !
WEEK() And The Years
The following query returns the dates within a given week :

SELECT WEEK(DateEvent),DateEvent FROM event WHERE WEEK(DateEvent) = WEEK('2008-09-18');

Since WEEK('2008-09-18') returns 37, the results obviously don't take in consideration the year so all the dates of the week 37 of every year are displayed.

If I specify the year, then the results are narrowed down :

SELECT WEEK(DateEvent),DateEvent FROM event WHERE WEEK(DateEvent) = WEEK('2008-09-18') AND YEAR('2008-09-18') = 2008;

View Replies !
How To NOT Select Years From XX To XX ??
Which is the proper syntax to indicate I want to SELECT ALL from user_submissions where the field CAMARO_YEAR is NOT BETWEEN 1967 and 2002?

For example let's say someone put "67" or "88" or "198" or something.. It should SELECT those because it's not between "1967 - 2002"

I tried :

$sql_cal09 = "SELECT * FROM user_submissions WHERE CAMARO_YEAR NOT IN BETWEEN '1967' AND '2002' ORDER BY SUBMISSION_ID";

and

$sql_cal09 = "SELECT * FROM user_submissions WHERE CAMARO_YEAR NOT BETWEEN ('1967', '2002') ORDER BY SUBMISSION_ID";

View Replies !
MySQL Slow Starting Up
I am using a Windows 2003 Web Edition Server running IIS and MySQL 4.1. I had to restart the server the other day and it took MySQL almost 2 hours to come back up. I was watching it on my task manager and it went up to approximately 60,000k in 10k increments before I was able to access MySQL.

My CPU usage was hovering around 3% all this time. Everything else came up on the server just fine. This happens every time I have to restart my server. The reason I have to restart my server most of the time, is because MySQL locks up on me.

Is there any settings I can change that would help me here? Any help would be greatly appreciated.

One more thing to add. I am using the default my.ini file. We have almost 100 different databases on the server and have around 20000 tables within all of these databases combined. All of these tables are InnoDB tables.

View Replies !
Starting Mysql With Mysqld
i'm trying to change the mysql data path. to do this, i have to shoot down mysql and restart it. i tryed to restart mysql with the program mysqld (i'm using windows xp, mysql server 5.0), but it doesn't work. why? is there any different way to start mysql? there was no error message or something like this. if i start it with mysqld --standalone, it works, but the command window doesn't replay anymore.

View Replies !
Starting With MySQL Administrator
I have just installed XAMPP on Ubuntu, and then i have installed MySQL Admin.

After open MySQL Admin, i can see a window with "Server hostname", "Username" and "Password".

I have written this:

Server hostname: localhost
Username: (blank)
Password: (blank)

I don't write any Username or Password because i can enter to MySQL server just with "mysql".

View Replies !
Mysql Server Is Not Starting
I have finished installing a copy of mysql from source on mandrake 10 (from source, not an rpm source) and everything went smoothly except starting mysql.
I run "root@myBox> mysqld_safe --user=mysql &" and I get this message:

Starting mysqld daemon with databases from /usr/local/mysql/var
STOPPING server from pid file /usr/local/mysql/var/*my-ip-address*.pid
041219 12:06:03 mysqld ended

so the server isn't starting, which is a problem. What have I done wrong?. These are the instructions I followed (with a slightly different ./configure line), which are from the mysql reference manual: 2.3.1 Source Installation Overview
The basic commands you must execute to install a MySQL source distribution are:

View Replies !
Problem On Starting MySQL
Ubuntu-6.06-LAMP-server-amd64

I followed section "10 MySQL" on;
http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p4

and found "libmysqlclient12-dev" not installed. After installing it MySQL unabled to start. I reinstalled all packages recommended there.

$ sudo apt-get install --reinstall mysql-server mysql-client libmysqlclient12-dev
Password:


Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 8 not upgraded.
Need to get 0B/3305kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 82866 files and directories currently installed.)
Preparing to replace libmysqlclient12-dev 4.0.24-10ubuntu2 (using .../libmysqlclient12-dev_4.0.24-10ubuntu2_amd64.deb) ...
Unpacking replacement libmysqlclient12-dev ...
Preparing to replace mysql-client 5.0.22-0ubuntu6.06.2 (using .../mysql-client_5.0.22-0ubuntu6.06.2_all.deb) ...
Unpacking replacement mysql-client ...
Preparing to replace mysql-server 5.0.22-0ubuntu6.06.2 (using .../mysql-server_5.0.22-0ubuntu6.06.2_all.deb) ...
Unpacking replacement mysql-server ...
Setting up libmysqlclient12-dev (4.0.24-10ubuntu2) ...
Setting up mysql-client (5.0.22-0ubuntu6.06.2) ...
Setting up mysql-server (5.0.22-0ubuntu6.06.2) ...
$ sudo /etc/init.d/mysql restart


Stopping MySQL database server: mysqld...failed.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
Killing MySQL database server by signal: mysqld.
Starting MySQL database server: mysqld.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
satimis@ubuntu:~$ /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
Please advise which file I have to edit getting the problem fixed. TIA



View Replies !
SQL For Finding Years In Dates?
What I need is a SQL statement that can find what years are in the
database that is greater than last year.

For example...

I have a table full of dates ranging from 2001 to 2005..

I am straining my brain to figure out a SQL statement that can give me
a list of years greater than last year..

In this case I need a list that has..

2003
2004
2005

View Replies !
Adding Multiple Years
I have set up tables that increase input dates by either a month, quarterly, half yearly or annual using M,Q,H or Y in the default space, and ('M','Q','H','A') in the length/values space.However, I want to be able to add 5 years to one of the fields in the table.

View Replies !
Do Years Begin With 1901???
I just created a new table that stores the names of Washington State governors, with separate fields for the years they began and ended office. When I filled it from my CSV file, I discovered that all the years prior to 1901 defaulted to 0000.

Is there a way to fix this, or should I just use INTEGERS instead of YEAR?

View Replies !
Re-setting Mysql As A Service
I installed mysql server 4.1 last month. When I installed it, I set it
to run as a service to start automatically. However, for some reason,
that no longer occurs. I can't even see the mysql service running from
services viewer in win xp. I now have to manually start mysql server
each time I reboot.

Can someone please tell me how I can Re-set mysql to run as a
service?? Or, if I re-install mysql, will it retain the db's already
created??

View Replies !
Can't Remove MySQL Service On Win XP
I am trying to reinstall MySQL on a Win XP pro box. After
uninstalling MySQL 3.x, a 'MySQL' service is left in the
list of services. I can't figure out how to delete it, and
installation of MySQL 4.1 fails during configuration. The
old service may not be the problem, but can anyone suggest
how to get rid of it?

View Replies !
MySQL Service Disabling
I am running MySQL 5.0.16 on Windows XP Pro box w/ 320 MB RAM. All current updates. I have been running this version since about March and have not had any problems with it. Starting Aug. 1, at random times throughout the day the service will disable itself. It might have once a day, it might have 2-3 times a day. We have to go in and manually and restart the service. I set the recovery to automatically restart itself, but that is a whole different story. I checked the error log and it looks like MySQL is doing the disabling and not Windows or some other application. My tables are setup for InnoDB. I have tried to dig deeper into the logs to see if I can figure out why it's disabling but I can't seem to find anything. I was wondering if there was a query that was overloading it or something else that was causing this.

View Replies !
Can Not Start MySQL Service
When I tried to install MySQL 5 it gave me this:
"Could not start the service MySQL5. Error: 0"
durring configuration. I've tried everything I could find on the forums and nothing worked. Now I don't know what to do.

View Replies !
Mysql Service Will Not Stop
What does this problem mean and how can I solve it?

net stop mysql
The MySQL service is stopping......... (never stops)

I am running Windows 2000 SP 4 with mysql 5.0.24a.

View Replies !
Uninstalling MySQL Service
I have an error that pops up in a prompt saying that "(null) was compiled with ... and PHP was compiled with... They must match." I don't remember the entire pargraph and couldn't copy it so I could paste it here. But part of it was "Thread Safety-1" This window pops up 16 times with OK Only during start up of my windows XP system. I can't tell if it is related to MySQL or PHP.

I have a MySQL Service running that is associtated with a non-existant directory. It is the only one. I want to uninstall the service but don't know how. Windows Service Manager (or MMC) won't let me do anything but start or stop the service. I say the MySQL is associated with that folder because when I select properties it tells me the directory. How can I uninstall this so I can make a fresh start?


View Replies !
MySQL SERVICE KEEPS DIEING
I was having problems with phpmyadmin and decided to upgrade to MySQL 5.0 alpa because phpmyadmin docs say that 4.1 is not "fully" compatible so I thought I might fix some problems.

Anyway, now the service keeps dieing, including when I try to log into phpmyadmin. I have it set to auto restart, but this cant remain like this.

Why is it doing this? I am running on Window 2000 Server fully patched.

View Replies !
Windows Service For MySQL
Im trying to install MySQL on a XP Pro SP1a machine. It wont start the service from the installer. I go to start the service manually, and it fails as well. It says "Error 1067. The process terminated unexpectedly."

View Replies !
MySQL Service Stopping
I'm experiencing a problem with MySQL. We're running version 5.0 on a Windows 2003 server and anytime I try to access our databases through MySQL Administrator or MySQL Query Browser, the MySQL service stops.

When I logon to the server to restart the service I get a pop-up message asking if I want to send an error report to Microsoft. The error message says that MySQLD-NT.exe encountered a problem and needed to close. What would cause the executable to encounter a problem?

I don't understand why I can run my application, which is called through ColdFusion MX7) can run against the database fine but going through MySQL Admin or MySQL Query Browser causes the service to shutdown.

View Replies !
Newb Starting MySql-Permissions
I have debian running and this is how I have it setup

# ls -ld /var/lib/mysql
drwxr-xr-x 4 mysql mysql 4096 Aug 19 11:29 /var/lib/mysql

I was shown how to setup a password for user mysql here
http://dle.ascendant.ca/restoring-mysql-root-HOWTO.txt,

because at one time all I would have to do it hit enter after
# mysql -h localhost -p -u mysql
Enter password: (no password is added I just hit enter)
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 16 to server version: 4.0.14-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> ( can do whatever I want now???)

If I type in the correct password it lets me in, if I type in no passowrd it
lets me in, if I type in the INCORRECT password it does NOT let me in. How
can I make it so that if no password is typed it still treats it as
incorrect?

View Replies !
Mysql Not Starting After VPS Server Reboot
I have a mysql db (Version: '4.0.22' FreeBSD port: mysql-server-4.0.22) running on an Verio VPS, and I am having an issue: After a power failure on Verio that meant restarted servers, etc, I saw that Mysql was not coming up.

I checked the logs / etc and I got this message on /var/db/mysql/<hostname>.err:

060925 00:15:53 mysqld started
060925 0:15:53 bdb: Recovery function for LSN 1 29049 failed
060925 0:15:53 bdb: warning: ./testperl/testab.db: No such file or directory
mysqld in free(): warning: chunk is already free
060925 0:15:53 Can't init databases
060925 0:15:53 Aborting

There is no ./testperl/testab.db anywhere I can see, but OTOH, there should only be a few dbs and none of them is called testperl... Honestly, I have no idea of what might be hapening, but having the db is quite a PITA.

View Replies !
Starting MySQL 5.0.1 Server Up Problem...
I shutdown my MySQL server using MySQL Administrator 1.0. My problem is that i dont know how to start up the MySQL Server again. I tried to run mysqld-nt.exe by double clicking it but my server will not be up. If i restart my computer then thats the time my MySQL server will be up. Unlike MySQL 4.0.22 if i double click on winmysqladmin.exe my server will be up.

Is there a way to put the server up without restarting my computer?

View Replies !
Problem Starting MySql From Root
I am in the process of creating a database which will serve as a backend for the registration of users' details and to handle account activation via the use of php scripts. I really need help with starting MySql. I have scoured various forums and followed instructions from the mysql.com, and other such tutorials.

I am creating the website using dreamweaver on a windows 2000 pc but I am planning to place it on the linux box where the apache web server will handle it (if you know what I mean). The linux server is where the php and Mysql are installed. Incidentally the php installation is located in the /etc directory - and it works.

I downloaded the Mysql binary file version 4.0.25 recently. Followed the installation instructions to the letter up to the change of ownership stuff. Code:

View Replies !
Prevent MySQL From Starting At Startup
I'm starting to play around with MySQL. How can I prevent it from starting up whenever my computer starts? It slows down the startup some, and I'm not always wanting to use it. besides, I can start it myself if I need it.I've had a look on Google for theis, and found quite a few results, but they were fo Linux or Unix. I'm ruinning Windows XP.

View Replies !
Starting Fresh With Mysql >> Dadabik
I have an Excel spreadsheet which has been my source document for the past several years for a collection I own. It has about 2000 entries (records) and each record has ~20 fields. Photographs of each item in the database are an integral part of this.
What I'd like to do is move all of this knowledge onto the web in database fashion and provide a means to allow users to search the database.
I found DaDaBIK which seems to be perfect for the show and tell phase of my project, but I need to create the database properly first.
I can make a mysql database with my hosting account, but I don't know where to start. I know databases can be tricky; at least what I know of Access is tricky, so I want to do this right.

I'm looking for help, maybe a simple tutorial, that will guide me through the process of transforming my Excel data and photos into a mysql database online.

I have googled for this, but there are so many articles, and it is all over my head anyway.

View Replies !
Returning Decades From A List Of Years
I have a column containing a year and I want to return a list of the decades in that column. For example:

Year
--------
1987
1992
1914
1922
1923
1928
1984

would return:

Year
-------
1910
1920
1980
1990

View Replies !
Storing Dates In The Billions Of Years
Since the datetime format only allows dates between 1000-9999 I won't be able to use this directly. I am considering using perhaps an integer or some sort of a date hack.

Right now I am considering all options. One I came up with is storing an alternate number to be stored alongside which would designate the date's power. So '0' would mean the date is between 1000-9999, '1' would mean the date is between 8000BC-999... etc. I am wondering if this would be too much of a problem coming up with queries, however, so right now I am leaning towards a regular year integer and perhaps a secondary integer for the MMDD.

View Replies !
Timestamp :: You Have Been With Us For X Years, X Months & Days...
in my database i want to be able to add the current time and date in a field and manipulate it to DD/MM/YYYY @ HH:MM:SS, for examples sake lets say i wanted to say

"You joined this site on 28/3/07 11:57:47 am || 23:57:47"

either 12 or 24 hour is fine, but can i store it like that, and it be fine.

then pull it out and say, you have been with us on domain.com for 2 years 3 months 2 weeks 4 days 15 hours and 20 seconds

View Replies !
Searching Appointment Availability Across Different Years
I seem unable to use iso dates to able to compare a 'check in date' and 'check out date' with tariff dates such as

tariff1 start date 2009-04-01
tariff1 end date 2009-09-30
tariff2 start date 2009-10-01
tariff2 end date 2010-03-31

check-in-requested 2009-09-28
check out requested 2009-10-03

You'll notice that the vacation dates span the two tariff periods.

How can I structure a query to cover two time periods/ tariff ranges?

my date comparison thus far is as follows

AND tariff.start_date <= ? # arrival date requested
AND tariff.end_date >= ?   # departure date requested

View Replies !
Unable To Run Mysql Service On Windows98se
I am trying to set the username and password after installing mysql 5,
I run an ms dos prompt, and type in mysqld but am met with an error msg:

C:Program FilesMySQLMySQL Server 5.0in>mysqld~2
061026 10:09:20 [ERROR] Can't find messagefile 'C:Program
FilesMySQLMySQL
Ser
ver 5.0shareenglisherrmsg.sys'
061026 10:09:20 [ERROR] Aborting

I checked the above folder and there is an errmsg.sys file, does anyone
know what could be wrong?

View Replies !
Mysql Service And Root Password (-w W)
I have a few qeustions for some linux/mysql pros in here.
Background: I've just built MySQL on Mandrake Linux 9.1 from source.
I can get the mysql service running my:
shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &
but I don't know how to keep it running, or how to make it start at
every bootup. How do I do that?
Also, I've made an alias to mysql:
alias=/usr/local/mysql/bin/mysql
but it won't span sessions, I think I need to export it, but I'm not
sure how to.
Also, via mysqladmin I set the root password to "password" which I
don't want to keep :) how do I got about changeing it now?

I know I probably should have installed via RPM, but I'm wanting to learn as much as I can about all of this.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved