What Parameter Control Mysql-bin Logs Size?
ls -althr Unix file system listing of bin files.
1.1G Mar 27 08:53 mysql-bin.000010
1.1G Mar 27 19:48 mysql-bin.000011
1.1G Mar 28 01:28 mysql-bin.000012
I see ALL my mysql-bin logs are about 1.1Gb in size and there must be an parameter that tell them to switch when It reaches this value but I can not see which parameter that controls this in ‘show variables’ or my.ctf - I would suspect it was max_binlog_size but the value does not come close to 1.1.G – do ANYBODY know what tells them to be 1.1G in size?
mysql> show variables like '%bin%' ; ....
View Complete Forum Thread with Replies
Related Forum Messages:
MySQL With A Parameter
I have MySQL 4.0.25 running on my Windows machine. It starts automatically as a service when I start windows. Now I allways want to start mysql automatically with the option "--log-update[=datei]". Where must I difine this option? In the my.ini?
View Replies !
Mysql UDF Parameter Passing
I am looking to implement a UDF in C++ that will more efficiently allow me to narrow down the data set returned from my queries. I'm looking to call this function in the where clause in my queries, for example: SELECT temperature FROM table_name WHERE (MyUDF(temp_flag) = 1) What I want to make sure of, is that I get the correct value for the respective function call on the respective row. temp_flag is the name of a particular field in the database; in this case it is a flag column that contains a string denoting if the temperature has passed our range check. So in the example query above, I want to make sure the argument passed to MyUDF is the actual string value of temp_flag from the same row as the temperature, for each individual function call.
View Replies !
Url Parameter In Mysql Resultset
how i can make a hyperlink in my mysql resultset. Se a screendump below. Here you can see links to different pages on my site in the column "url", but it is not possible to click on them. Code:
View Replies !
MySQL LENGTH Parameter
lets say we have a table named TEST with just one column called NUMBER. The datatype for NUMBER is set as SMALLINT(3). "(3)" is the LENGTH parameter. At first glance I would think that its purpose is to limit the number of digits allowed in the column called NUMBER. Maybe this really is its purpose and I'm just not understanding. According to http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html : " Another extension is supported by MySQL for optionally specifying the display width of integer data types in parentheses following the base keyword for the type (for example, INT(4)). This optional display width is used to display integer values having a width less than the width specified for the column by left-padding them with spaces. The display width does not constrain the range of values that can be stored in the column, nor the number of digits that are displayed for values having a width exceeding that specified for the column. For example, a column specified as SMALLINT(3) has the usual SMALLINT range of -32768 to 32767, and values outside the range allowed by three characters are displayed using more than three characters. " Code:
View Replies !
Mysql Syntax - Filter By URL Parameter
I'm following a tutorial on how to create a search/results page (In Macromedia Dreamweaver Advanced). I created a search page with a form that lets a user choose a season (from a list named formseason) and submit (form action=searchresults.php method=get) and a results page, where I've created a recordset and have it being filtered by what is chosen in the form (formseason). This is my SQL statement (based on what the tutorial had me write): SELECT * FROM photos WHERE photos.season = #URL.formseasons# ORDER BY `date` DESC The only problem is that I think the URL parameter is done in cold fusion (#URL.formseasons#) and I'm getting an error. How do I write the equivalent with php? Or is my problem something different?
View Replies !
Access Parameter Queries To MySQL
In Access I am accustomed to writing a query "Query A" that takes a "non-hard coded" parameter, like "[Enter City]" and then using that query in yet another query "Query B". When I run the second query "Query B" I will be prompted for "[Enter City]" and then get my record set from "Query A" that used records from "Query B". I have been converting my MS Access queries to MySQL's SQL code which I have actually become good at, believe it or not. But when I run into a query that needs to be passed any information and that query will be used in another query...then I have to stop, because I don't know how to write the SQL code. My mental "rut" that I am stuck in is this: should I be writing SQL code that does what my "query within a query" does (which I don't think I can, because that is why I did it in two or more sub queriesin MS Access) or is there a way to write SQL code that uses other queries that get passed parameters? I don't know if this is a "MySQL" confusion or if it is a "writing SQL code" confusion. How should I write MySQL code; is it just one big long and ugly statement, or is there a way to utilize record sets from other paramiterized SQL code? I hope I am making my self clear, to be honest; this is really fuzzy with me. I know that MS Access give me a lot of shortcuts, but being able to use parameter queries within queries is so fundamental to how I work in MS Access that I am having a difficult time understanding the MySQL steps to accomplish the same thing.
View Replies !
About MySQL Logs
while trying to output mysql logs file from a php file, I've got this message: You are not using binary logging So I would like to know what this mean and the reason I got this message!
View Replies !
MySQL Administrator Logs
I have been using mysql database on two servers for about three years now. I recently downloaded the new MySQL Administrator and I love it. My only problem is I cannot see logs. I am connected on the local machine and cannot find the option to turn on the logs or anything. I have looked through my.ini and everywhere.
View Replies !
MySql Control Center
I am new to using the Control Center-0.9.2-beta. My problem is that I cannot seem to display more than 1000 rows in my result set when I know that there is 1534 rows. I know that it is a setting somewhere, but is it in MySql or in the Control Center somewhere. I am running this on a Windows 2000 machine.
View Replies !
DBD::mysql Object Version 2.9003 Does Not Match Bootstrap Parameter
Hi everyone, Machine info: Fedora Core 3, MySQL-server-4.1.9, and perl-DBD-MySQL-2.9003-5 When I try to use mysqlhotcopy command to backup database, following error occurs :(& install_driver(mysql) failed: DBD::mysql object version 2.9003 does not match bootstrap parameter 2.0419 at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 253. Compilation failed in require at (eval 4) line 3. I installed perl-DBD-MySQL thru up2date. Please help me..
View Replies !
How To Parse Parameter Information Obtained From Mysql.proc Table
i used Select command to obtain information about parameters information from mysql.proc table,the result of which for my procedure "demoSp" was something like "IN inputParam VARCHAR(255),INOUT inOutParam INT". Now how do i parse this information ...means the datatype,its size,type of parameter([in] or [inout]) in general.. for all my procedures's parameters present in my database..
View Replies !
Permissions In Mysql Control Center
I need to allow 3 different servers to access my MySQL Server. How do I do this? Also, I was told that having MySQL configured so it doesn't restrict access is bad - how do I make sure that's not the case?I feel like I know what they're saying, but I don't know how to actually implement this in the Control Center, and I must be using the wrong keywords because when I look it up, all I find is stuff on how to connect to the MySQL Server from my web page using php (which is what I'm using and already doing).
View Replies !
How To Control Mysql In Hosting Server
I am a ASP programmer. I use MS Access for quite some time, and I am to switch to MySQL. The way I use Access is create tables in my computer and upload it. When I want to do backup, I will download it and make another copy locally. 1. How to create a MySQL DB and Upload it? 2. How to modify the DB structure? For example, create index for certain field? do I have to download it and change it locally? 2. How to download and make backup?
View Replies !
Clearing Mysql Binary Logs From A Script
I'd like to know how to clear down mysql binary logs from a script. I have a script which runs this: "C:Program Filesmysqlinmysql" -uroot -prootpasswd < C:ClearBinaryLogs.sql ClearBinaryLogs.sql: use db PURGE MASTER LOGS BEFORE 'NOW()'; doesn't clear anything but seems to complete without any errors and all the paths are correct, anyone have any ideas?
View Replies !
Importing Tables Using MySQL Control Center
I am using Dreamweaver MX to create a data-driven web site. With the VPS hosting plan we're on, our remote FreeBSD server only supports the PHP application server. PHP requires MySql. Thus, I installed a copy of MySQL Control Center 0.9.2 beta. (I prefer a GUI and not command prompts unless necessary.) The information I plan on using in developing this site will be derived from a contact management program called GoldMine. The records will be exported into DBase tables, and somehow imported into the MySQL/PHP/Dreamweaver environment. From what I can gather so far, the MySQL environment I'm working under will not work with Access or DBase tables. Thus, I've created a new table in MySQL and re-created the various fields to match what I have in the DBase table. Now I want to import all the records I have in my DBase table. In fact, I will need to update the MySQL database weekly. So far, I have been successful in making all the connections work, except for importing the table into MySQL. In the MySQL Control Center, once you connect to the database, there is an option to import, but it is dimmed out. How do I make it work?
View Replies !
Local Remote Command Control For Mysql?
ok, My website is hosted remotely onto my Web Hosting company. and i want to control MySQL remotely or locally in my computer without using PHPMyAdmin. I notice using PHPMyAdmin is very tiresome and also i'm thinking if there is a good alternative for PHPMyadmin so that i don't need to enter my CPANEL website everytime i do the work using PHPMyadmin. I'm thinking perhaps just like Microsoft Express/Outlook functionality instead of opening my Yahoo emaail account they will be sending the incoming and outgoing messages into my email automatically. This are the features that i'm looking for as an alternative for PHPMyAdmin.
View Replies !
Control Center :: GUI To Connect To A Remote Mysql Database
I'm trying to get the GUI to connect to a remote mysql database from my client machine. What is the proper syntax for this in the GUI? I have tried everything with no luck: using the ip of the host, using the complete dns hostname of the host, using root as the user, using root@hostname as the user. I keep getting access denied for every attempt. I'm sure I am using the correct password.
View Replies !
Size Of Indexes Versus Data File Size
I am adding indexes to a table with about 200,000 records. Every field indexed adds about 2MB to the index file (*.MYI). The index file is around 8MB and the data file is around 10MB. Is there some optimum ratio I need to know about? (I have examined the queries and am indexing field used in WHERE, ORDER BY and GROUP BY clauses.)
View Replies !
W/ Cmd.parameter.add
I'm setting the value of a command parameter correctly but it won't insert it into the commmand text: Public Function Update(ByVal conn As Object, ByVal row As officials, ByVal pkey As integer) As Boolean Dim SqlStr As String = "UPDATE officials SET FirstName=@FirstName, LastName=@LastName WHERE Pkofficial = " + convert.tostring(pkey) Dim cmd As New MySqlCommand(SqlStr, conn) cmd.Parameters.Add("@FirstName", row.FirstName) cmd.Parameters.Add("@LastName", row.LastName) there is a valid value in firstname & lastname but the parameter.add method doesn't insert it into the SqlStr
View Replies !
Array Parameter
since mysql's stored procedure does not accept an array as a parameter, is it a good practice to input a string delimited parameter eg. call stored_procedure(param1, param2, 'value1:value2:value3');
View Replies !
SQL Script With In Parameter
how can i write a sql srcript which takes in parameters and run it in MySQL client? (e.g. in Oracle we can write SQL scripts which take parameters identified by & and &&, and run them in SQL+)
View Replies !
Change Parameter
I've to make a program to manipulate a database in MySQL 3.23.58 (win32). I create a database with many tables, one of them is created by this SQL statement: create table movimientoscuentas ( IDMov INT NOT NULL AUTO_INCREMENT, IDCuenta INT NOT NULL, IDCajero INT NOT NULL, Fecha DATETIME NOT NULL, Concepto VARCHAR(50), Cantidad VARCHAR(20), PRIMARY KEY(IDMov,IDCuenta), INDEX(IDCuenta),FOREIGN KEY(IDCuenta) REFERENCES cuentas(IDCuenta) MATCH FULL ON DELETE RESTRICT, INDEX(IDCajero),FOREIGN KEY(IDCajero) REFERENCES cajeros(IDCajero)MATCH FULL ON DELETE RESTRICT ) TYPE=INNODB;'#0; I would like to know how I could change the "parameter" ON DELETE RESTRICT of both of the foreign keys to ON DELETE CASCADE in execution time, I mean, What is the SQL statement I have to use? (I obviously want to hold the data of the table, I just want to change that "parameter")
View Replies !
Input Parameter
I have created a version history table containing a column with the name of the person who is installing the release. How do I get the MySQL script to ask for this information and use the information in the INSERT statement?
View Replies !
Using A Table Name As A Parameter
I am trying to write a function, but having massive problems. Firstly, is how I am writing it the most efficient way possible? This query is going to get run thousands of times an hour. Secondary how do I pass a table name as a parameter? CREATE FUNCTION do_timezone_offset(parm datetime, reference_table varchar(100)) RETURNS datetime BEGIN DECLARE return_date DATETIME; SELECT DATE_ADD(@parm, INTERVAL(SELECT t.utc_offset FROM timezones t, @reference_table r WHERE t.id = r.timezone_id) HOUR)) INTO return_date; END
View Replies !
What Is The Max Size Allow For Mysql???
when I dump my db (as in mysqldump) I realize that the size of file is getting big (I guess this is one of the database's nature - to grow :-) ). Right now the size of my db is 200Mb and my estimation that it will grow in 800Mb/Per year (so it'll reach 1Gb by the end of the year) Question: what size would it be wrong to use mySql? I mean, if my db size is 3Gb am I ok? should I expect performance issues? or it doesn't matter.
View Replies !
The Size Of MySQL
I've been thinking of using MySQL but after downloading it to test it out I see that its over 25MB in size. Why is it so large? (Of course relatively speaking.) If I dont need *anything* fancy, just simple storing and retrieving of information, why would I need such a large type of database?
View Replies !
Effects Of Innodb_locks_unsafe_for_binlog Parameter
I'm hoping someone can clarify the side-effects of setting the innodb_locks_unsafe_for_binlog parameter for me. I'm running a fairly standard web application hitting a MySQL 5.0 backend, currently using the default transaction isolation level of repeatable-read. We're seeing a fair amount of lock contention, and think it would be safe to move down to read-committed. We also want to disable next-key locking as this also causes some contention that just moving to read-committed does not eliminate. So it appears that we need to set innodb_locks_unsafe_for_binlog to do this. I'm OK with this potentially causing some phantom reads in the application, nothing is so critical that a few errors like this will cause damage, but I definitely do NOT want to lose point-in-time recover capabilities from the binary log. I didn't see too much documentation here (http://dev.mysql.com/doc/refman/5.0...parameters.html) as to what the "unsafe" effects of setting this parameter on the binary log are. If I set innodb_locks_unsafe_for_binlog to "on", will I just miss some transactions in my binary log? Or does this have the potential to render it completely useless for point-in-time recovery?
View Replies !
Outfile Name As Parameter In Proc
can I use the outfile_name as a parameter for my proc? DELIMITER $$ DROP PROCEDURE IF EXISTS `shema`.`sp_name` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_name`(in outfile_name varchar(100)) BEGIN SELECT * FROM manufacturers limit 11 INTO OUTFILE outfile_name FIELDS TERMINATED BY ' ' LINES TERMINATED BY ' ' ; END $$ DELIMITER ; I get an error please correct my e-mail address to Robertsmargalit@yahoo.com
View Replies !
Can A Query Alias Be Used As A URL Parameter?
Question: Is is possible to use an alias created in a MySQL query as a URL parameter? (I'm not sure if this is a MySQL issue, a PHP issue, both, or neither). My database table uses self-referencing ids to establish hierarchy. In the temporary example below flow is my PK, and both parent and top are self-foreign. .....
View Replies !
Size A MySQL Server
I've got a question about how to size the server hardware for a MySQL system that I've got to buy and build. We're going to be putting a database on MySQL that will contain upwards of 20 million rows of data. This data will be used by Java applications running under Tomcat to provide web pages, Java data objects and probably most importantly SOAP web services. The total number of concurrent users of this data is not know, but could be thousands / hour. The database will be essentially read only, no transactions or updates by users. The whole thing will be running on a RedHat Enterprise Linux AS server. What I'd like to know is what kind of machine should I be buying; CPU speed wise, memory size wise and disk size? My initial impression is that the requirements I've outlined above could be handled readily by even a modest machine, but I wanted to ask for feedback in case my impression is wrong.
View Replies !
Table Size In Mysql
how many records can i put in a mysql table. i need a table with more than 50,000,000 records (just 4 short fields, it's basically a log with id,action,date,result).
View Replies !
Mysql Table Size
i read the mysql manual and it's explained the maximum table size in many operating system, but i can't find the maximum size for MS window (win32), what's the maximum table size for win32? My office want to migrate the database server to mysql, and it's contains a millions record. Can mysql hold up tables with each have millions record?
View Replies !
> Mysql Table Size?
i read the mysql manual and it's explained the maximum table size in many operating system, but i can't find the maximum size for MS window (win32), what's the maximum table size for win32? My office want to migrate the database server to mysql, and it's contains a millions record. Can mysql hold up tables with each have millions record?
View Replies !
Size Of A Mysql Query
What is the maximum size (in characters) you can query in mysql (4.0) I am making a dynamic generated query in php, which may cause the query-text to become very big.
View Replies !
Mysql_config --cflags Giving The -g Parameter
I've installed mysql using binaries and yum. I'm trying to compile our server when using mysql_config --cflags says I should use the -g option. I do NOT want to use it our server application is much more slow if it's compiled with debug options. I've tried to get infos on why it returns this and it's probably because I don't know the subject too well to know what keywords to look for but I really can't find anything on why it returns which flags and how to configure it.
View Replies !
|