Please note: If this FAQ s empty you must choose English language from the drop-down-box below. Only English content is available as of now!
Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems

- Database Schema Synchronization
- MySQL DATA synchronization
- Notification Services
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)

- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Instant Response
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (115411 views)
- Error no. 2003: Can't connect... (52121 views)
- Error no. 1251: "Client does not support authentication..." (48097 views)
- Error no. 1045: "Connection denied..." (41353 views)
- SQLyog Version History (39963 views)
- What is HTTP-tunneling? (29298 views)
- Error No. 2005: Unknown MySQL server host... (28374 views)
- What Is SSH and SSH-tunneling? (25501 views)
- Why are Stored Procedures not created when I import ... (23465 views)
- Do I need PHP to use SQLyog with MySQL? ... (21523 views)
Latest FAQs 
- SQLyog Version History (2010-03-09 03:20)
- SQLyog is a client for the MySQL server - ... (2009-09-11 07:48)
- Can I use SQLyog with the various SQL-modes available ... (2009-08-20 08:02)
- Failed dependency for libstdc++.so.5 error (2009-08-13 11:22)
- Wrong results are returned for FOUND_ROWS(). (2009-08-12 06:31)
Working with Views, Stored Procedures and Triggers
Problems with CREATE/ALTER 'stored program' when server binary log is enabled.
You may enocunter the situation where creation/alteration of a 'stored program' (Procedure/Function/Trigger/Event) fails to create even if user has appropirate (like CREATE ROUTINE or ALTER ROUTINE for instance) privilege.
The reason is that those 'basic privileges' are not always enough when binary logging is enabled in the server. Binary logging is used for replication and the restrictions are implemented in the server to ensure that no unwanted change of data takes place on the replicating slave.
MySQL explains:
Server 5.0: http://dev.mysql.com/doc/refman/5.0/en/stored-procedure-logging.html
Server 5.1 http://dev.mysql.com/doc/refman/5.1/en/stored-procedure-logging.html
Server 6.0 http://dev.mysql.com/doc/refman/6.0/en/stored-procedure-logging.html
So this is NOT a SQLyog issue or bug! (and it is not a server bug either!)
If either of the errors
ERROR 1419 (HY000): You do not have the SUPER privilege and
binary logging is enabled (you *might* want to use the less safe
log_bin_trust_routine_creators variable)
ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,
or READS SQL DATA in its declaration and binary logging is enabled
(you *might* want to use the less safe log_bin_trust_function_creators
variable)
ERROR 1417 (HY000): A routine failed and has neither NO SQL nor
READS SQL DATA in its declaration and binary logging is enabled; if
non-transactional tables were updated, the binary log will miss their
changes
..occur when creating or (for the last message) executing a 'stored program' and when connected to a server with binary logging enabled you may need to do either of those for a 'stored program' to create (and execute) successfully:
* grant SUPER privilege to the user creating the 'stored program'
* explicitly declare the stored program with one or more of the keywords DETERMINISTIC, NO SQL, or READS SQL DATA
* set the server variable log_bin_trust_function_creators = 1 in server configuration.
But before doing so you should understand the reasons for these restrictions in detail. They were implemented to protect your data! And finally you should be aware that details depend on the exact server version (and likely we have not seen the last change yet).
Tags: -
Related entries:
- Do I need PHP to use SQLyog with MySQL?
- SQLyog gives you the most options for connecting to MySQL
- Welcome to the Webyog FAQ
- Installation and upgrading
- SQLyog Version History
Last update: 2008-07-16 06:58
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ