473,771 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3.23.54 log files

Hi

I'm using mysql 3.23.54 over Red Hat Linux 9. I'm having problems with
the error logs.

I've run mysqld start --l, mysqld start --log, mysqld start
--log-error, and mysqld start --log=MyErrors.lo g and not once managed
to find a log file.

I'm running mysql and then issuing:- SELECT * FROM myFile WHERE 1;
which gives ERROR 1046: No Database Selected. That should surely be
logged in a file somewhere.

I'm using:- find / -amin -5 to select anything altered in the last
five minutes, after many fruitless hours trying to find the correctly
named files (from <http://dev.mysql.com/doc/mysql/en/query-log.html>).
I can't see anything containing that error.

Ultimately, I'm trying to work out whether a J2EE app has connected
with mySQL. I want to see whether the CORBA error I'm getting is
because mySQL rejected the request, or whether it's from CORBA itself.
If mySQL rejected it, there'd be an error message. I just can't see
any error message store at all. Can anyone see the error of my ways?

J

PS. Somehow when I previously posted this, it was appended to someone
elses thread. I didn't do that knowingly, apologies
Jul 23 '05 #1
4 1220
Among other things, you said:

I'm running mysql and then issuing:- SELECT * FROM myFile WHERE 1;
which gives ERROR 1046: No Database Selected. That should surely be
logged in a file somewhere.

When you use the mysql client, you need to specify the database you are
using. After logging in, at the mysql> prompt, type:

mysql>show databases;

you will see a list of databases: 'mysql', 'test', and your databases.
'mysql' is the system database which contains users, hosts, privileges,
etc. 'test' is a test database, which is a workspace you can safely
experiment in. The others are your created databases. (You DID create a
database, didn't you?) You select your database using:

mysql>use your_database_n ame

It will respond with 'database changed.' Now you can perform queries
against your database.

If you haven't created a database, you will need to do so. Then you have
to create one or more tables in the database in which to store your
records. Your post kind of indicates that you have not done this, as a
SELECT is done FROM a TABLE, not a file. It is fairly easy to create a
database and a table, then load your file into the table. See the
documentation on MySQL's website, or locally on your computer. If you
need a hand with it, post again with a question (and some details like
field names and data types, and how your file is delimited - tabs, commas,
etc.) and we'll help you get it going.

--
Mike Argy
Custom Office solutions
and Windows/UNIX programs
Jul 23 '05 #2
If you're just setting up your MySQL database, get the latest version from
their site (4.1.11). It is available as an RPM that you can install
easily on RedHat 9, and it is more functional than the version that came
with the distro. You'll likely be much happier with it. Download/install
the server and client packages at the very least; the 3.23 client won't
work as well with the 4.1 server. Also, if you want to run the max
version of the server, you need that IN ADDITION TO the server package.

It will be much easier for you to start with the newer version than to
migrate to it later.
--
Mike Argy
Custom Office solutions
and Windows/UNIX programs
Jul 23 '05 #3
By the way,

If you're just setting up your MySQL database, get the latest version from
their site (4.1.11). It is available as an RPM that you can install
easily on RedHat 9, and it is more functional than the version that came
with the distro. You'll likely be much happier with it. Download/install
the server and client packages at the very least; the 3.23 client won't
work as well with the 4.1 server. Also, if you want to run the max
version of the server, you need that IN ADDITION TO the server package.

It will be much easier for you to start with the newer version than to
migrate to it later.

--
Mike Argy
Custom Office solutions
and Windows/UNIX programs
Excel 2000 on Fedora Core 3

Jul 23 '05 #4
"Mike A" <re***@newsgrou p.please> wrote
Among other things, you said:
I'm running mysql and then issuing:- SELECT * FROM myFile WHERE 1;
which gives ERROR 1046: No Database Selected. That should surely be
logged in a file somewhere.
When you use the mysql client, you need to specify the database you are
using. After logging in, at the mysql> prompt, type:
mysql>show databases;
<snip>
Your post kind of indicates that you have not done this, as a
SELECT is done FROM a TABLE, not a file.


Thanks, I don't think I knew the "show databases" command. I was
trying to create an error deliberately though, in order to work out
where the error files were, so I did know about the other stuff (worth
checking tho).

I'm moving to SUSE Linux soon on a new machine so I think I'm going to
wait and see how MySQL works on that, whether I need to upgrade it (as
the other respondent said) and so on.

Thanks for your help
J
Jul 23 '05 #5

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

Similar topics

2
14169
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
44
4068
by: Xah Lee | last post by:
here's a large exercise that uses what we built before. suppose you have tens of thousands of files in various directories. Some of these files are identical, but you don't know which ones are identical with which. Write a program that prints out which file are redundant copies. Here's the spec. -------------------------- The program is to be used on the command line. Its arguments are one or
0
6137
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
18
3184
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now you have your ".cpp" files all ready, without any "#include" or "#define" in them. Let's assume that there's 2 source files in this project, "a.cpp" and
3
3097
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by using header file. i can create a class c1 with f1() in c1.h and include this c1.h in file1.cpp by giving the statement #include "c1.h" tell me that what exactly is the difference between c1.h and c1.cpp? Since they both are doing the same things.
11
5607
by: ambika | last post by:
Iam just trying to know "c". And I have a small doubt about these header files. The header files just contain the declaration part...Where is the definition for these declarations written??And how does that get linked to our program when we run it??I would appreciate any helpful info..And I would like to thank you for that in advance -ambika
22
3018
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text files, which in turn could be simply and easily maintained with notepad. I understand the benefits of XML, really, but in the case of configuration files it seems it is almost always nothing more than unnecessary complexity, both in accessing them...
18
2303
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or JPG files. The problem as I see it - if you know the name of the file, you could download it off the server (currently we are using an HTTP/Get but I'm going to be using WebClient in the new version.) If there any way to password protect the...
0
1512
by: wal | last post by:
How does one attach files to emails using libgmail? The following code http://pramode.net/articles/lfy/fuse/4.txt works fine when said files are simple text files, but it failes as soon as the files are wild binary files, even attaching the source of an email in a text file (.eml files) failes. What am I missing here? Any hints? The output I get when attemting to send binary files using the code above is pasted below. have fun,
3
5193
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
9454
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,...
0
10261
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8934
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, 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...
0
6713
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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...
1
4007
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 we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.