Quantcast
Channel: MySQL Forums - Workbench - Database Administration
Viewing all 245 articles
Browse latest View live

How to "integrate" databases? (3 replies)

$
0
0
Hey,

my first post here...

I use an extension in LibreOffice which connects to some mysql-db local hosted. Now, developers of this extension published a new version of their extension AND a new version of the fitting mysql-template. I tried to get this runnig by

mysql -u user -p --default_character_set utf8 < new_database.sql

but now all my content is gone. So I tried to do the same with a backup (made using mysqldump) but now my database is the old version again. So I guess I need some code saying "create this new database tabels etc. but do not change any existing tables"

Is it possible? So far I am not very familar with mysql administration.

Thx!

connecting to mysql database via workbench (1 reply)

$
0
0
Hi all

I have just installed workbench on my laptop and have a local test environment. I am able to connect to the local test environment fine but when I try to create a connection to my remote host I keep on getting a repeated password prompt indicating the following:

Please enter password for the following service:

Service: mysql@the database host address.com:3306

that prompt keeps on coming up repeatedly.

Can any one share provide me with some assistance?

Thanks

G. Tench

import the exported contents of one schema into another (2 replies)

$
0
0
Using 5.2.35 CE, Build 7925 version of MySQL Workbench, I have exported the tables from the live schema used by a website that I'm developing and I need to import the exported tables/files into a second schema for sandbox experimentation purposes by a person unfamiliar with MySQL but an otherwise experienced DBA.

Unfortunately the import tab does not appear to let you set the target schema for the import. The sections of the import page where one should be able to set the target schema shows only the schema from which the tables were exported.

Since I have complete permissions to both schemas, this would not seem to be a permissions issue, rather it seems to be a feature set issue. Has the been fixed in a more recent build? Or will it be target for inclusion soon? Or is there a step in the process that5 I've overlooked?

How to Schedule backup in MySQL Workbench (1 reply)

$
0
0
Hi,
I want to schedule Daily Backup in Workbech.
I didn't found option to schedule backup.
Please help me with the procedure to schedule backup

Thanks,
Sri

DB Synchronisation (1 reply)

$
0
0
Hi guys 'n gals,

Apologies in advanced for ramblings but I would really appreciate some pointers to more effectively use workbench for db admin...

Several devs need to work on the schema models and these eventually need to be pushed to dev then staging and ultimately live.

In no particular order.

Synchronising schemas to models and models to schemas.

Akin to a git merge what is the most robust process for schema synchronisation. I would dearly love to open my model and compare to a 'live' database and pull in selected changes. For example if table a on live had a field x and schema had a field y I'd like to update my schema to add x without removing y or add y to live table without removing x. I don't see how to accomplish this in workbench.

Importing a new table to the schema model will place it in the list of tables but not onto the diagram. you can copy paste onto the diagram but no fk references are maintained - it would be lovely if there were a simple way of maintaining this on import.

Often even after forward engineering a schema model and immediately running sync - several table are highlighted as suitable for update and the alter script is simply dropping and recreating foreign key constraints - this seems somewhat odd. Why are differences detected in the first place?

Procedures.

Sync of procedures is proving most trouble some. We do not add definers to our schema models as devs have different accounts so we check access logs. This however means many procedures (but oddly not all) are seen as requiring an update. what could we do to work round this? use of a central account is acceptable as we commit models to version control.

Some procedures cannot be altered in the instance view. When attempting alter we get 'Error Parsing DDL' - running 5.2.37 - only reference I could find was a bug report that this occured if delimiter was changed to ; but that is not the case here using $$. The only thing in common is that these routines use group by with rollup... ANY pointers here would be awesome.

I would dearly like to avoid using migration scripts and just let workbench do the compares and what not in a version control style but at present the thinking in the team is that its not possible.

Many thanks in advance for time on this - any help/pointers would be VERY much appreciated.

Lost root password (6 replies)

$
0
0
We have had personnel changes at our company, and no one working here now knows the root password. As a programmer, I am unable to access many of our tables with code. How can I reset (or discvoer) the root password?

How is it possible that Workbench is getting worse with time? (1 reply)

$
0
0
I've been using MySql and it's workbench tool for well over a decade and it strikes me as odd in that the workbench is the only application I use for anything which is clearly getting crappier and crappier with time. I can't say that there is a single feature which I can consistently rely on to actually work. The most basic of tasks is completed by little more than random chance. Even those things that do work right now won't work an hour from now and restarting the application will not fix it. If you're really lucky you'll get an error but even then you can be sure that it won't be useful in any way. Don't ask me to be more specific because if you don't know what I'm talking about you've never used it. About the only way it's consistent is in that it consistently sucks. No matter the OS or the task you can count on workbench to let you down. Is this how Oracle plans to kill MySql? I think it'll work but they're smoking meth if they think people are going to switch from MySql to Oracle DB. This clearly shows a lack of quality assurance.

How much data can mysql free version handle? (1 reply)

$
0
0
I would like to know how much data can mysql handle.

How can you see the data usage that is present in the current database?

What do you do if the database cannot handle that amount of data?

using the latest ver of mysql workbench

Windows Azure: using MySQL Workbench (no replies)

Putting MySQL on hold for backup (no replies)

$
0
0
We are running a reasonably large MySQL database (> 100.000 tables, > 4 TB size).
The database is used to store incoming measurement data, which is pushed by measurement stations, so that we do not really have control over when and how much data is coming in.

The database runs under SLES and VMware. The backup is executed as a virtual machine backup, not with database tools. This runs fine for most of the times, but randomly, the backup and large incoming data loads overlap which in turn drives the backup into a desaster: running for days, eating up all disk space, etc. On the other hand, a stop of MySQL at a given time would interrupt a currently running data load, which is for many reasons not very beneficial.

Of course, we could start to write loading software, which is more fault tolerant and digests reloads after being interrupted. We could implement semaphores, which coordinate loading procedures and backup procedures.

An easy way would be just to put the database deamon processes on hold on the OS level, so that they don't write during the backup and release them afterwards.

Any experience with such a procedure ? Any hint for a semaphore framework as an alternative ? Thank you for any comment on these thoughts in advance.
Sam.

How to take 1 year backup in mysql? (no replies)

$
0
0
Hi

I have MySql database 5.0, my client require the last year database backup i.e., from 01-Jan-2012 to 31-Dec-2012, how can I take the one year database backup?

Regards
Chakravarthy

Server Admin giving error on v5.2.45 (3 replies)

$
0
0
I just updated MySQL Workbench from version 5.2.37 to 5.2.45. Now, when I try to connect to one of my instances via Server Administrator, I get an error message:

Quote

Error Starting Workbench Administrator

UnboundLocalError: local variable 'datadir' referenced before assignment

This only happens on one (of three) instances I'm trying to connect to.

About the instance:
MySQL Server Version: 5.0.24a-community-nt
Server OS: Windows Server 2003 R2
Server Memory: 4GB

The other instances I try DO work, and include these versions:
5.1.29-rc-community (Windows Server 2008)
5.0.84 (Linux)

In case it was not clear: I did not have this issue with 5.2.37, and it goes away if I roll BACK to that version. I'm thinking it may be a bug, but wanted to get more input before I file a report.

What more can I tell you? Help me to help you to help me. :-D

TIA!

Crashes, crashes exporting objects (2 replies)

$
0
0
Hi,

I'm on Mac OS Mountain Lion:
* MYSQL Workbench 5.2.44 in server administrator exporting selected objects to single transaction dump file
Crash every time

* MYSQL Workbench 5.2.47 trying to start the Server administration for a particular server
KeyError: '%ProgramFiles%'
Can't even get in anymore.

In both cases, the connection is localhost through ssl

Does anybody know a version that works? I recently moved to Mac OS and on Windows things work or fail from version to version unfortunately.

Kind regards,
Marc

Error Starting workbench Administrator (no replies)

$
0
0
Hi!
I am using workbench with following specs
- workbench version : 5.2.45 CE
- OS : windows 7 Home Premium edition. (64 bit)
I have two connections to remote servers with both of them having following specs
- MySQL : Server version: 5.5.28 MySQL Community Server (GPL).
- OS: Fedora 17 (64 bit).

I am facing following problems;
1. Clicking on Server Administrator showing following error alert

"Error starting workbench administrator
QueryError: Error executing 'SHOW PLUGINS'
Can't create/write to /tmp/#sql_4dd_0.MYI' (Errcode: 2).
SQL Error : 1"

2. Clicking on SQL Editor ("Open Connection to Start Querying"), does connect to database , but Object Browser does endlessly show "Tables fetching", "View fetching" and "Routines fetching". But in case I query the tables, it does fetch results. (It was working properly previously)

3. It is not specific to workbench, but if I modify anything in the database through my application (bamboo), it gives me following error
java.sql.SQLException: Can't create/write to file '/tmp/ib75mSTm' (Errcode: 2)
at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:47)

I am new to db administration , so any help will be appreciated.

Permissions (2 replies)

$
0
0
I have a question regarding permissions

If I have a few users in the db how do I set up different permissions to different tables.
Say person X has full rights to table 1 but only read rights to table 2
Say person Y has read rights to both Table 1 and table 2

In the workbench I can see how to add a user and give that user read, update, add, delete etc rights...but not on a table specific basis

Thanks.

remote server administration in mysql workbench not working on oensuse 12.3 (3 replies)

$
0
0
Hello

I'm using mysql workbench on opensuse 12.1 without any problems.
The new version 5.2.44 on opensuse 12.3 works for sql editor (remote) at least I can connect and view tables etc. but remote server administration does not work.
I have migrated and created also new connections nothing work.
There is always the error:

Administrator plugin not found

Is this not anymore included in newer versions? Is this only an opensuse problem?
No body having this problem?

Greetings

Beat

Here is output of Scripting/Scripting Shell

Registered 175 GRT classes.
Traceback (most recent call last):
File "/usr/lib64/mysql-workbench/modules/wb_admin_grt.py", line 27, in <module>
import wb_admin_main
File "/usr/lib64/mysql-workbench/modules/wb_admin_main.py", line 29, in <module>
import wb_admin_monitor
File "/usr/lib64/mysql-workbench/modules/wb_admin_monitor.py", line 21, in <module>
import wba_monitor_be
File "/usr/lib64/mysql-workbench/modules/wba_monitor_be.py", line 27, in <module>
import wb_admin_ssh
File "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py", line 51, in <module>
if paramiko and paramiko.__version_info__ >= (1, 7, 4):
AttributeError: 'module' object has no attribute '__version_info__'
Registered 34 modules (from 32 files).
Looking for user plugins in /home/bmeier/.mysql/workbench/modules
MySQL Generic Runtime Environment 4.1.0

Type '?' for help.
Python Shell initialized. (Use Preferences -> General to set language)
Ready.

Workbench not creating Server Instances (3 replies)

$
0
0
I am using MySQL Server 5.6, as a Windows service.

The MySQL Server service is running, because it starts up automatically.

I am using Workbench v5.2.47 CE.

Both were installed using the MySQL Installer.

I am running as a user with administrative privileges.

NOTE: This all is running on Windows 8.

I am attempting to create a new server instance.

1. I go to the main page and click on the "New Server Instance" link.

2. My service is local, so I select localhost and click Next.

3. I do not change anything in the subsequent screen (because I know, after a lot of attempts, that this will not work). Because I am doing administration, I leave the login at root. I click on Next.

4. Workbench tests the connection to my service. All tests succeed. I click on Next.

5. The subsequent window that comes up says "No MySQL Service Found". The comboox has nothing in it. And because it cannot find my running service I cannot proceed at all.

6. I have tried restarting the system several times (this seemed to solve a similar problem with Server 5.5), but the problem persits.

Have I found a bug in this Workbench? Or is there some way that I can make it find my MySQL service?

Someone please advise.

Import help please! (2 replies)

$
0
0
I am not new to MySQL programming at all, but I'm running into a major issue trying to use Workbench to import some data files to a database I've just created. Server is Linux CentOS 6.3, Workbench 5.2.47, when I try to import the files, I get this error.. I've tried a few different ways, get different errors, but nothing seems to work. They are .csv files (with an actual extension of .txt) that I need to import to build the database. Once the DB is built, I can use PHP to import new ones. Any help would be greatly appreciated. They are dilimited with | not , but it doesn't seem that's the issue...

00:29:55 Restoring C:\Users\osyrys\Documents\aussie work\cdr\cdr\CDR\mel\2012-08\billing_file_2012-08-01_00-00-00.txt

Running: mysql.exe --defaults-extra-file="c:\users\osyrys\appdata\local\temp\tmp3qclwa.cnf" --host=103.9.53.42 --user=root --port=3306 --default-character-set=utf8 --comments < "C:\\Users\\osyrys\\Documents\\aussie work\\cdr\\cdr\\CDR\\mel\\2012-08\\billing_file_2012-08-01_00-00-00.txt"

ERROR 1064 (42000) at line 1: 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 'H|2012-08-01 00:00:00||billing_file_2012-08-01_00-00-00.txt|4

D|1|U|1|2012-08-01' at line 1


Operation failed with exitcode 1

00:29:58 Import of C:\Users\osyrys\Documents\aussie work\cdr\cdr\CDR\mel\2012-08\billing_file_2012-08-01_00-00-00.txt has finished with 1 errors

Error occured: Cannot start SSH tunnel manager (no replies)

$
0
0
I just installed mysql-workbench 5.2.47 on CentOS 6.4 and I can't get it to do anything. I am attempting to talk to the mysql server on the localhost. First I don't know why SSH is even necessary when talking to the localhost. Secondly, it is failing with the error message "Error occured: Cannot start SSH tunnel manager"

mysqlfailover failing to failback (3 replies)

$
0
0
Hi All,

I have been playing with mysqlfailover but a problem seems to stump me every time. It has to with the slave promoted to master and if shutdown, the datafiles can become corrupt, causing a crash dump and won't start again until that server is rebuilt. Let me explain:

The set-up:
2 x MySQL 5.6.10 on Redhat 6.3 x86_64.
IP addresses: 192.168.25.161, .162 respectively
Initially 1 x slave and 1 x master, set up with the following commands:
# mysql_install_db --datadir=/data
# /etc/init.d/mysql start
mysql> create user 'repl'@'%' identified by 'password';
mysql> grant all on *.* to 'repl'@'%';
mysql> RESET MASTER; RESET SLAVE;
Then on 1st server:
mysql> CHANGE MASTER TO MASTER_HOST = '192.168.25.162',MASTER_USER = 'repl', MASTER_PASSWORD = 'password', MASTER_AUTO_POSITION = 1;
And 2nd server:
mysql>CHANGE MASTER TO MASTER_HOST = '192.168.25.161',MASTER_USER = 'repl', MASTER_PASSWORD = 'password', MASTER_AUTO_POSITION = 1;

/etc/my.cnf (similar to the sample in PDF, with IP address adjusted):
[mysqld]
binlog-format=ROW
log-slave-updates=true
gtid-mode=on # GTID only
enforce-gtid-consistency=true # GTID only
master-info-repository=TABLE
relay-log-info-repository=TABLE
sync-master-info=1
slave-parallel-workers=2
binlog-checksum=CRC32
master-verify-checksum=1
slave-sql-verify-checksum=1
binlog-rows-query-log_events=1
server-id=1
report-port=3306
port=3306
log-bin=black-bin.log
datadir=/data
socket=/data/mysql.sock
report-host=192.168.25.161
relay-log = /data/relay-bin
general-log = 1
skip-slave-start = 1


What I did:
I started mysqlfailover like this:
#mysqlfailover --master=repl:password@192.168.25.161 --discover-slaves-login=repl:password --exec-before=/root/pre-failover.sh --exec-after=/root/post-failover.sh --rediscover

And mysqlfailover starts with 192.168.25.161 = master. 192.168.25.162 = slave.

For the first failover, things were sweet. .162 becomes master. I restarted Mysql on .161 successfully, resumed replication on .161. mysqlfailover recognises it as slave (Good!).

So I tried to failback such that .161 becomes the master again. When I stop the Mysql process (/etc/init.d/mysql stop and kill. I tried both), .162 produces this in the log. (Full log attached)

-------------

2013-04-11 01:56:20 25747 [Note] InnoDB: Starting shutdown...
2013-04-11 01:56:21 7fbe34e69700 InnoDB: Assertion failure in thread 140454908040960 in file trx0rseg.cc line 125
InnoDB: Failing assertion: UT_LIST_GET_LEN(rseg->update_undo_list) == 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
17:56:21 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=4
max_threads=151
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68216 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0x8bfd45]
/usr/sbin/mysqld(handle_fatal_signal+0x4a4)[0x65b074]
/lib64/libpthread.so.0(+0xf500)[0x7fbe4d5b7500]
/lib64/libc.so.6(gsignal+0x35)[0x7fbe4c2648a5]
/lib64/libc.so.6(abort+0x175)[0x7fbe4c266085]
/usr/sbin/mysqld[0x9a5cf8]
/usr/sbin/mysqld[0x9a8139]
/usr/sbin/mysqld[0x98f2bf]
/usr/sbin/mysqld[0x8dad94]
/usr/sbin/mysqld(_Z22ha_finalize_handlertonP13st_plugin_int+0x2e)[0x5a000e]
/usr/sbin/mysqld[0x6e05ee]
/usr/sbin/mysqld(_Z15plugin_shutdownv+0x233)[0x6e0ff3]
/usr/sbin/mysqld[0x594638]
/usr/sbin/mysqld(_Z10unireg_endv+0xe)[0x5949de]
/usr/sbin/mysqld[0x5978c8]
/usr/sbin/mysqld(kill_server_thread+0xe)[0x597a7e]
/usr/sbin/mysqld(pfs_spawn_thread+0x139)[0xadc7d9]
/lib64/libpthread.so.0(+0x7851)[0x7fbe4d5af851]
/lib64/libc.so.6(clone+0x6d)[0x7fbe4c31967d]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
130411 01:56:21 mysqld_safe Number of processes running now: 0

------------

mysqlfailover looks really promising if we can use it for production. Any help is appreciated.

Regards,

Rayson Chan
Viewing all 245 articles
Browse latest View live




Latest Images